Questions tagged [redactor]

An easy to use WYSIWYG editor that is visually light and very flexible.

Filter by
Sorted by
Tagged with
1
vote
1answer
27 views

“Redactor plugin not found” – How to properly implement Craft plugins providing Redactor plugins?

TL;DR What is the correct/recommended way to implement a Redactor plugin within a Craft plugin? My intention I'd like to implement a Craft CMS 3 plugin that adds a new Reactor plugin. Normally (...
1
vote
0answers
21 views

Craft 3 Image Editor / Redactor - Remove?

TL;DR Can the button for "Image Editor" be removed from Redactor in Craft 3? I've looked around the Craft docs and web, but I can't find a way to remove the button that appears within the Redactor ...
2
votes
2answers
56 views

How to allow data attr in tags in Redactor HTML Purifer

I am looking to allow data attr in tags with Redactor content. What should I add to the Default config settings to allow this attr?
1
vote
3answers
39 views

How to add an alpha ordered list option in Redactor?

In addition to a bulleted unordered list and a numbered ordered list, I'd like to add an option to format text as an ordered list with upper-alpha letters, like this: A. B. C. D. Can I add this ...
1
vote
1answer
55 views

Max character limit on WYSIWYG text editor plugin?

Is it possible to add a max character limit to CKEditor, Redactor, or any other rich text, or WYSIWYG plugin?? I've searched around, and I'm surprised that I have not been able to find a solution. ...
1
vote
1answer
28 views

Disable WYSIWYG?

I hate WYSIWYG. I prefer to write my own html but can't figure out how to put that into a field for entries content. I tried plain text but that does not work. I tried to disable cleanup and purify ...
1
vote
1answer
100 views

Does Redactor have a button that adds a horizontal rule (<hr> tag)?

Does Redactor have a setting for a button that adds a <hr> tag?
0
votes
0answers
18 views

Redactor - convert youtube link to embed player

In redactor config, we have autoParse setting: This setting turns off the default conversion of video (youtube/vimeo) and image URLs into embedded videos and images, and turns off automatic ...
0
votes
0answers
11 views

Can I link to a tag from Redactor?

Title says it all. I have tags that I use to relate entries to each other. When typing inside a Redactor field I would like to be able to write something like #engineering and have that tag become a ...
1
vote
1answer
27 views

Redactor or another HTML editor that can inherit actual page styles?

is it possible for Redactor or any of the other editors to actually inherit the styles from the (front end) page it is editing? My client has bootstrap columns etc and the pages have some elements ...
2
votes
2answers
33 views

Stop Redactor automatically creating hyperlinks

Each time I write a link such as www.link.com Redactor automatically turns it into an active hyperlink. Is there a way to turn this function off?
1
vote
1answer
42 views

Redactor fields not saving more than 252 characters?

I haven't set any kind of character limit on my Redactor fields, but when I save a longer body of text, is always cuts it off at 252 characters. See screenshots: Before save: After save: Here is ...
1
vote
1answer
32 views

Redactor migration might fail with allowAdminChanges & useProjectConfigFile false

One of the recent Craft updates (something close to 3.1.25) also brought a redactor migration (https://github.com/craftcms/redactor/blob/v2/src/migrations/m190225_003922_split_cleanup_html_settings....
1
vote
1answer
29 views

Redactor ImagePosition - no custom styles

I have ImagePosition within Redactor set up, but ideally, I'd like custom settings rather than the default "none, left, right, center" Redactor file reads: { "buttons": ["html","formatting", "bold"...
0
votes
0answers
26 views

Use Imgix with Redactor?

I am using this plugin to use Imgix to transform my images: {% set image = entry.featuredImage.one() %} {% set transform = craft.app.config.general.imgix.small %} {% set imgixTransform = ...
0
votes
0answers
20 views

Save form to a redactor field

I have the following code which saves to a plain text field very easily, but when I try to save to a 'redactor' field it doesn't actually save anything at all? Is there something I'm missing here? &...
1
vote
1answer
29 views

String interpolation in Redactor

I have a redactor field whose HTML contents contain links to other parts of the website. How do I render variables located in the HTML content of a Redactor field in Twig? Sample redactor content: &...
2
votes
1answer
71 views

Redactor - can't link to files

I have added the "file" option in my Standard.json file for Redactor. Wehn using the Redactor field then I can click on the file button and select the image ok. When I view source the file is linked ...
1
vote
1answer
24 views

Saving an entry with multiple parentheses throw a 403

Saving an entry with multiple parentheses (in a redactor field) throw a 403. I know it's from ModSecurity - but never experienced that behaviors with another CMS (WP, Kirby, etc.) or with Craft2. This ...
1
vote
0answers
185 views

Strange Redactor Config error when importing colleague's database

Description I am getting this error after importing a database supplied from my colleague. I have deleted the vendors directory and composer lock file in an attempt to re-install Redactor. I have ...
1
vote
1answer
17 views

Can I have non-boolean TargetBlank output using HTMLPurifier and the Redactor plugin?

I'm using the Redactor plugin throughout a Craft 3 site and I'm also using a custom HTML Purifier config to clean up the HTML (surprise). { "HTML.ForbiddenElements": ["&nbsp;", "br"], "...
1
vote
0answers
120 views

HTML Purifier Allow <script

I understand the implications of having a script tag in my redactor field. But I am importing approx. 5k articles in to a Redactor field, some of which have various tags from embedded Podcasts, ...
1
vote
1answer
112 views

Can't link to entries or assets via a Redactor field

When using a Redactor field for a section, I can’t upload assets or link to entries. I just get an empty modal with no ability to select a section or asset folder. Thoughts on what I’m doing wrong? [...
2
votes
1answer
313 views

Redactor - formattingAdd isn't changing code

I added a custom formattingAdd to my Standard.json file in my Redactor config. It's supposed to add the attribute data-aos="fade-right" to a paragraph tag. The "Animate" format option is showing up in ...
2
votes
1answer
52 views

Pre-fill fields when creating an entry in CP

I am using redactor plugin for my field type and I want to use global values of the same field type to be used as pre-fill value when creating a new entry. Use case: Each year there is an edition of ...
2
votes
1answer
363 views

Redactor formattingAdd not working

I've used redactor's custom formatting option before, but now I can't get anything to work. Here's what my file currently looks like: { "buttons": [ "formatting", "bold", "...
1
vote
1answer
244 views

Craft 3 Upgrade having issues with rich text editor

I know that Craft3 now requires Redactor or CKEditor plugins to handle rich text editing, however after installing the Redactor plugin through the store, I am getting this error in the 'Body'. The ...
0
votes
1answer
84 views

Entry not saving when Redactor bold

I'm having a weird issue with the Rich Text Editor (Redactor -> simple.json, only "bold" and "italic") on newly added fields and only ONE (that i know of) older field. Every time i add a "bold" format ...
1
vote
1answer
56 views

Can you hook into a Redactor field before render?

I am wanting to hook into all my redactor fields content before rendering and update any inline links to include a title="" attribute. Is it possible to hook into the field before it is rendered? With ...
1
vote
1answer
244 views

Is there a way to allow users to control alignment of images in the Redactor plugin using Craft 3

I'm looking to let editors determine the alignment of images in a Redactor field. I wasn't sure if it worked out of the box with Craft 3 (I'm using 3.0.9). I did find this plugin: https://github....
1
vote
0answers
47 views

Redactor customisation not showing in Redactor text field

I've set up a custom redactor .json file which works and shows up on the dropdown, however, whenever I'm selecting one of the options the text in the field isn't updating to the chosen style. I've ...
1
vote
1answer
47 views

Imagemanager plugin doesn't show up in toolbar

I have upgraded redactor 2 to redactor 3, since a lot of things had to be changed. Been fixing those and it works well. I have a problem with image manager plugin which doesn't show up in the toolbar. ...
1
vote
1answer
77 views

Issues with Redactor on Local Install

I loaded redactor. When I try to run the install command ./craft install/plugin redactor I get an error back that says craft is a directory. It appears the plugin may already be installed. But I do ...
1
vote
0answers
34 views

Redactor image default filter

Is it possible to define a default filter for an image inserted in Redactor text ? Filter twig for front or config ? Thanks
2
votes
2answers
275 views

How do I wrap my Youtube video from a Redactor field with Bootstrap's responsive classes?

In my Redactor field, I'd like to programmatically wrap all Youtube videos that have been added through Redactor's video plugin with Bootstrap's responsive embed classes. This answers how to add a ...
1
vote
0answers
78 views

Redactor has destroyed my mailto links, now what?

I migrated from EE > CraftCMS. The email links in my EE WYGWAM fields were encoded as JS. When we imported to CraftCMS we lost all of those links. They now look like this: <a>joe@schmoe.com</...
1
vote
1answer
44 views

Redactor field doesn't display

Redactor fields are failing to display for my client and I'm stumped as to what might be happening. They work fine for me and I haven't heard reports from any of the other 10+ CMS users. It seems ...
2
votes
1answer
847 views

Craft 3 Redactor Link no longer has target option

The option for opening a link in the Redactor WYSIWYG no longer includes a field for opening it in a new tab? I haven't been able to find any docs that indicate any options for the Redactor config ...
1
vote
1answer
176 views

Craft 3 CP performance

I'm wondering what kind of performance I should expect from Craft 3's Control Panel. I've created a (clever) structure, where I have matrix field which contains a superTable field. Matrix Row (...
2
votes
1answer
107 views

Cannot edit entries after Redactor 2.0.1 upgrade

I upgraded to Redactor 2.0.1 on Craft Pro 3.0.6, and now I'm getting this error anytime I try to edit an entry that uses Redactor. InvalidConfigException('Redactor plugin not found: '.$plugin); I ...
1
vote
2answers
126 views

Specify Redactor config in migration

is it possible to specify the Redactor config file when creating a Redactor field programmatically? I was hoping I could do something like the following but have had no success: $bodyField = $...
2
votes
2answers
768 views

Redactor 3 config code

I'm trying to get the same features I had in Craft 2 in Craft 3 redactor field. This is the code I had in config/redactor/standard.json: { "buttons": ["format","bold","lists","link","file"], "...
1
vote
2answers
151 views

How can I get the image picker on the WYSIWYG editor?

I am running on the latest version of Craft (Craft CMS 2.6.3015). I have a blog entry, which has a Rich Text editor for the body field. However, I do not have an image or file upload field in the ...
2
votes
1answer
483 views

How to add a button or format style in Craft 3 CKEditor (rich text field)

I'm looking to customize the CKEditor (rich text field) to restrict my client to only these buttons: h2, p, bold, italic, underline, link & unordered list.
1
vote
1answer
219 views

Redactor plugin not found: imagePosition Craft 3

I just updated a Craft 2 site to Craft 3, everything pretty much works except for this error: Redactor plugin not found: imagePosition Since Redactor is now installed via the plugin store, how do I ...
1
vote
0answers
14 views

Section permissions are ignored when linking to an entry

Users with permissions to limited sections can still “link to an entry” in any section from within the WYSIWYG (Redactor) editor. I'm using Craft 2 with a Rich Text (Redactor) field. Is this a bug ...
0
votes
0answers
138 views

Redactor entry links to dev server

When building a site locally and linking to entries in redactor fields, all of the links are being saved in the database with links to my local dev server (http://mysite.test/path/). Is there a config ...
0
votes
1answer
139 views

How to output a Rich Text Link to an Entry as a tooltip?

I have a Glossary channel on my site, with Term and Definition fields. I would like Terms to display their definitions throughout the site...whenever so assigned by the content editor. I currently ...
1
vote
1answer
123 views

Append a string to the end of all rich text links

I'm trying to append a string to the end of all rich text links. Is there an already existing plugin for this?
1
vote
2answers
155 views

Superscript in entry title

We launched a site for a scientific publication and they use subscript and superscript in lots of their content. Now they'd like to use in entry titles too.. I know I can set the entry title to be a ...