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
15 views

Redactor field removing P tags

Firstly, I used WP Export All / Feed Me to migrate blog posts from a wordpress site to a craft site. The HTML from the wordpress content field has all been imported properly. Text is wrapped in p tags,...
0
votes
0answers
20 views

Remove br tags at start and end of parent tag, + remove whole instances of parent tag and br tags if no text

Anyone know regex when using "replace" to remove all br tags at start and end of tags: So <foo><br>Foo<br></foo> or <foo><br>Foo</foo> etc. becomes &...
1
vote
1answer
22 views

How to remove category link from redactor links but leave assets and entry link

This is a follow up from How to remove Link To Category from Redactor. I've been able to setup the module and remove all links with this: Event::on( RedactorField::class, RedactorField::...
1
vote
1answer
26 views

remove text from Redactor

Was just wondering how (or if) you can remove text from redactor: (there might be a better way to deal with this all together - im option to suggestions) the use case is I just want to have the video ...
1
vote
1answer
27 views

Redactor adds <figure> to both image and video embeds, how to style differently

When video or images are embedded redactor wraps both the iframe and img tags in a . I've been using the following css to style the iframe to maintain the ratio responsively: figure { position: ...
0
votes
0answers
15 views

Adding Redactor formatting that wraps selection

Anybody know how to add a redactor style/formatting option that effectively lets you select a bunch of text, click the formatting style, and have it wrap it in a div? the desired scenario is basically....
1
vote
1answer
27 views

Is there any way which does not remove Specific Html tags from the redactor editor using striptags only?

Is there any way to do it with striptags only or we have to use another filter?
0
votes
1answer
23 views

How Can I load Inline CSS in the Redactor Editor?

In Redactor I put some content but I don’t know why Inline CSS is not load? Is there any way to solve this problem?
0
votes
0answers
11 views

Redactor Richtext. Editing a Link with an “&” breaks the link

Both screenshots were done without saving the entry. Just adding the link inside redactor and opening the edit menu again. Adding a new Link After pressing add and edit the link again You can see that ...
1
vote
1answer
26 views

Add Redactor field to searchindex

Is it possible to add a redactor field to the search index? I'm importing about 160 posts from a WordPress blog and the client has said it is absolutely essential that the posts themselves are ...
1
vote
1answer
47 views

Help with the latest Redactor, removing formatting options

In the past I've managed to remove a few formatting buttons from Redactor but am having trouble with the new version. The goal is to remove 'quote', 'code' and 'heading1' from the formatting-dropdown. ...
0
votes
0answers
22 views

Use entry field in redactor

As an affiliate I want one field where the links are stored, this link is saved as an entry. I've tried to call the template_from_string function but variables in the url are not overwritten. Is there ...
1
vote
1answer
42 views

Redactor default .json

From what I understand, the "Default" .json-file is hardcoded into the plugin, and always selected by default when creating a redactor field. I always use my "Standard.json" or &...
1
vote
1answer
23 views

getting redactor video.js plugin installed

I tried to install the redactor video.js plugin but I can't make it work. I tried to intgrate it via "control panel js" plugin. Put the "video" tag under "buttons", but ...
0
votes
0answers
18 views

adding font family drop downlist to redactor craft cms

this options to craft cms i was only succeful to add align and bold option i want to add font family video and image upload options 1: https://i.stack.imgur.com/F71TL.jpgthis options to craft cms i ...
0
votes
0answers
16 views

Custom Plugin forms.textareaField Redactor buttons not rendering

I am struggling with how to get Redactor to show the source and image buttons within a custom plugin. Are there only certain buttons that are allowed if you are extending textareaField? Below is the ...
1
vote
1answer
28 views

Redactor removes article tag from HTML while saving

I'm using Craft 3.x. I'm using the Redactor plugin in Craft. I have an HTML with an article tag (HTML tag). As soon as I save it, Redactor strips the article tag because of which UI goes for toss. . ....
0
votes
0answers
14 views

How to add attr to redactor 2 formattingAdd object config

I have searched all over the web for the documentation that fits into my working usecase for redactor 2, The working solutions I have gotten off the web and works for me isn't on the redactor ...
0
votes
0answers
9 views

How to filter the entries in redactor link “Link to an entry” based on the category tagged in the content

I have entries that should not be shown to other users that not is not tagged to it's category. Any idea on how to deal with this issue? I've checked this issue How to remove Link To Category from ...
0
votes
0answers
53 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
15 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
61 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
28 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 ...
2
votes
1answer
55 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
15 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​...
1
vote
1answer
140 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
155 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
79 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 ...
1
vote
1answer
43 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
50 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
142 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
92 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
38 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
83 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 ...
1
vote
1answer
285 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
125 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
81 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
416 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
296 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
2answers
341 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
46 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 ...
3
votes
1answer
426 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
48 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
45 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
100 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
72 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....
2
votes
1answer
58 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
49 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
220 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
85 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
2 3 4 5 6