Questions tagged [redactor]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

Using Markdown and rich text

I recently converted my old site from Craft2 to Craft3. My body text field is Redactor, but I want to be able to post in markdown. From what I can tell, markdown only works with plain text fields. Is ...
0
votes
0answers
10 views

Can a redactor field be configured to save images in different folders?

Can the same redactor field save inline images in a dynamically determined folder structure? Can something like asset field's upload location be configured for it?
1
vote
1answer
31 views

Redactor: Set a min height and preserve line breaks

I'm looking to set a min height on the redactor text area. The vendor site shows how it can be done, but doesn't specify where to add this code snippet. $R('#content', { minHeight: '500px' }); I ...
1
vote
1answer
21 views

Prevent Redactor from adding site identifier to entry links

I have a multi-site setup, and when using Redactor's Link to an entry function, by default, site identifiers are added to the link href: href="https://mysite/my-page#entry:4223@3:url" I would like ...
1
vote
1answer
18 views

CraftCMS Redactor is adding <p> tags to viewable source code… but then removes them when saving

We are in the midst of a migration from WordPress to Craft. Much of the content contains line breaks, which are converted to <p> tags in Redactor (as seen in Redactor's view source plugin). ...
0
votes
0answers
14 views

Redactor Link Encoding create 404 errors

Has anyone come across scrambled link encoding in Redactor resulting in 404 errors? How do we solve this? What should be: https://www.dazeddigital.com/​f​a​s​h​i​o​n​/​a​r​t​i​c​l​e​/​3​3​0​3​0​/​1​...
0
votes
0answers
28 views

How to add class to ul ol tag in redactor by using formattingAdd

I try to add a class to tag ul by field Redactor. I have prepered special config file for Redactor. For example in Redactor field a have a created simple list so i select this list and next from ...
1
vote
1answer
36 views

How to display plain text only from redactor without any line break or format

Is there a way to display plain text only without any line break or format style. I have an input field using the redactor. I want the result to shows plain text without any formatting for this ...
1
vote
1answer
30 views

Cannot hide redactor strikethrough button when table plugin is enabled

I am trying to set a Redactor field so that it only shows the table button, though no matter what I do... the strikethrough button appears, it looks like the correct name is strike though doesn't ...
0
votes
0answers
26 views

Redactor, add CSS class to IMG

In Redactor, how can I add a formatting option to Add a CSS class to an image? formattingAdd only works for block elements. So the below does not work. "formattingAdd": { "img75": { ...
0
votes
0answers
24 views

frontend-editing with redactor?

Has anyone an idea if it is possible to get the frontend editing for redactor text fields working like in their native redactor demos with click-to-edit and air toolbar, for instance https://imperavi....
1
vote
1answer
36 views

What causes an entry's field to be marked as “modified” when the entry is saved?

When an entry is saved, what causes the entry's individual fields to be marked as "modified" in the POST request? I'm trying to troubleshoot an issue where a modified Redactor field that is a child ...
1
vote
1answer
23 views

Can I Configure Redactor to Automatically Add a Class to Img Tags?

I am trying to set up lazy loading for the images on my site but currently, any image added via Redactor lacks the necessary 'lazyload' class. Is there any way to configure Redactor to automatically ...
1
vote
1answer
75 views

Is there any alternative for the Redactor plugin in Craft 3?

The Redactor plugin not working well for me. So I am in need of another good plugin for an editor that supports HTML, image, video, etc. Please advise me about this.
1
vote
2answers
39 views

Redactor image button not showing up

I have seen a few questions the same as this, but none with answers that work. I am trying to use redactor to allow for dynamic blog posts to be written by my team. In my redactor set up file I have: ...
0
votes
0answers
32 views

How to handle two Redactor fields in one entry page in Craft 3.3?

I have an entry for blogs page. It contains 2 Redactor fields named content and body. I upgraded Craft 2 to Craft 3.3. Then the old editor changed to Redactor plugin, but that Redactor worked for body ...
1
vote
0answers
44 views

Prevent Redactor from stripping tags like <span>

Is there any possible way to prevent <span> tags from being stripped from a Redactor field? I've tried all I can using custom Redactor and HTMLPurifier configs to no avail. Basically what I'm ...
0
votes
0answers
40 views

Toggle class on any tag in Redactor

Is it possible to toggle class on ANY tag in Redactor? This is my current code but it also switches tag to <p> (I guess that's default tag if no "tag" argument is set) when class toggles: { ...
1
vote
1answer
120 views

Bad Request: Post Request Required when saving hyperlink in specific redactor field

I'm having a strange issue here. I have a site running Craft 3.3.7. I have an entry with a matrix field with several redactor fields in it. In one of those redactor fields, I have a paragraph of text. ...
1
vote
1answer
54 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
52 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
220 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
144 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
180 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
37 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 ...
2
votes
1answer
251 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?
1
vote
1answer
34 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
37 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
61 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
57 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
35 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"...
1
vote
1answer
34 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
133 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
54 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
251 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
31 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
218 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
164 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
428 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
67 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
2answers
651 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
388 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
126 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
74 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
435 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
61 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
60 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
87 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
39 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
488 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
2 3 4 5