Questions tagged [redactor]

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

Filter by
Sorted by
Tagged with
6
votes
3answers
5k views

How do I add class to redactor format list?

I understand that to add a "note" class to the redactor text editor drop down, I need to use formattingAdd. But each iteration I've tried does not work. The example is: https://imperavi.com/redactor/...
1
vote
1answer
50 views

How to add a class to an image figure in redactor?

Using Redactor Custom Styles plugin we're adding a button with options to toggle classes on figures. It mostly works except for images. Here's an entry in our redactor config. "customStyles":...
6
votes
5answers
2k views

Rich-Text/Redactor hyperlink classes

I’m trying to implement different hyperlink styles within a rich-text field by adding formatting options via a Redactor config file. "formattingAdd": [ { "title": "Button", "tag": "a", "...
0
votes
0answers
10 views

Feed Me not updating the Redactor fields when checking for updates

Feed Me runs as expected and looks for updates but the Redactor fields are left out of the update. I don't get errors. What am I missing?
0
votes
0answers
37 views

How to add an attribute to the HTML Purifier definition

I'm a little bit over my head trying to configure HTML purifier for my needs. I asked this question in stackoverflow and it seems that I might need to do something like this: $config = ...
1
vote
1answer
37 views

Decrease heading level if entry is descendant in Redactor

I am currently building a doc system with multiple levels. I have build individual entries, but I'd like to parse the whole documentation in one page. Currently, I'm doing it like this: {% set pages = ...
0
votes
0answers
16 views

Redactor plugin: breakline is added double

I have a simple field, with this config: { "buttons": [ "bold", "italic", "link" ], "breakline": true } What I want is to just ...
4
votes
1answer
1k 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 ...
0
votes
0answers
37 views

Feedme CSV into Redactor encoded as JSON

Importing into Redactor from a CSV file and we have no control over the formatting. There is a column containing text that is in quote marks but on importing into a Redactor field, any string that ...
0
votes
0answers
11 views

Odd Redactor Issue — Ignores HTML until resaved

I have a Redactor field with content copied over from a WordPress blog using FeedMe. Clicking on the 'html' button confirms that there’s HTML markup in the field — mostly just paragraph tags, a few ...
2
votes
3answers
1k views

Is it possible to make links open in a new tab by default?

I have a website where by default I would like all external links to have the "open in a new tab" option to be selected by default. I'm wondering if this is possible either through craft or redactor? ...
1
vote
1answer
32 views

Feedme import formatting into Refactor from JSON

Having had a bit of a nightmare trying to get content out of Wordpress into Craft via Feedme have written an intermediary script to sanitise the WP XML export into something more palatable (JSON). ...
0
votes
0answers
33 views

craft cms how to modify redactor image upload path

So for my assets field types, I have the Asset Location (Where selected assets should be stored.) set to: {owner.type.name}/{owner.slug} this neatly puts all the files I upload via the asset field ...
1
vote
1answer
113 views

Error when trying to update Craft or install any plugin

When I try to update Craft, or install any plugin from the plugin store, I get the following error): Composer was unable to install the updates. Error: The url supplied for the path (plugins/redactor)...
1
vote
1answer
27 views

Redactor - doesn't generate unordered list

I'm using Redactor v2.8.5. it doesn't render an unordered list in HTML? How do I fix it?
1
vote
1answer
65 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 &...
0
votes
0answers
68 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,...
6
votes
3answers
3k views

How do I enable redactor rich text editor in a front-end form?

I have a front-end form for registered users to submit entries, however I'd like to have a WYSIWYG editor like the dashboard. How would I get redactor working with this form? My form: <form ...
0
votes
0answers
23 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
30 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
32 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
97 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
19 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....
0
votes
1answer
60 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?
1
vote
1answer
52 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?
2
votes
1answer
238 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 ...
0
votes
0answers
13 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
59 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
117 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
25 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
2answers
494 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. ...
3
votes
2answers
1k views

Text Align Buttons for Rich Text Fields

I'm trying to add the ability to be able to align text left, right and center to my rich text fields. I have had a look into it and can only find a version which works perfect for body fields but not ...
1
vote
1answer
33 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 ...
1
vote
1answer
265 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
39 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. . ....
2
votes
1answer
81 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
35 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
6answers
2k views

Redactor - Superscript button

Is there a possibility to ad a 'superscript' button to redactor? Edit: I found an explanation here: How can I use <small> <sub> <sub> within a redactor/rich-text field? But I can't ...
2
votes
1answer
105 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
18 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
125 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
291 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
59 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
78 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
184 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
119 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
47 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 ...
2
votes
2answers
1k 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
2k views

How to add a non-breaking space to a rich text field?

Seems like a basic question but I can’t figure out a way to do this out of the box, or reference to it in the Redactor docs. ‘&nbsp;’ always gets stripped out.
1
vote
0answers
113 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
2 3 4 5 6