Questions tagged [redactor]

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

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

How can I modify the image item in Redactor to accept queryparams at the end of the src link programattically?

With my current setup, Craft is pointing images to a hosting service, and images loaded into redactor are setup to load images with that URL. The service allows you to pass arguments at the end of the ...
0 votes
1 answer
22 views

Redactor no longer maintained

What is a recommended alternative to the redactor plugin? Or just use it anyway? Cheers, Joe
1 vote
2 answers
107 views

Redactor RTE -> what about Craft 5?

https://plugins.craftcms.com/redactor Redactor is still not available for Craft 5? If so, that's a major problem for my upgrade path to Craft 5. I know the CKEditor plugin, but that's not an option ...
1 vote
1 answer
30 views

Redactor strips out video tags

I’m embedding a video. I have the video button set up for my Redactor field. I use it to insert a video element. When I save Redactor strips the code out and replaces it with an empty figure element. ...
1 vote
1 answer
772 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, ...
4 votes
1 answer
258 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
2 answers
192 views

Make external links open in new tab, while internal not?

I've been going around in circles wondering which way to tackle this, so thought I'd ask while trying things out in case there's a really obvious way staring me in the face! I have tens of thousands ...
1 vote
1 answer
78 views

Redactor: Assign data attribute

According to redactor’s documentation it should be possible to add a data attribute to a block format. The code below works except from the data-cursor part (the block is styled italic and receives ...
0 votes
0 answers
66 views

Plugins not working. "Unable to find component class 'ether\seo\fields\SeoField'."

I deployed a Craft CMS website to a webhosting space today and everything is running fine except for my Plugins (Redactor & SEO). When I open an entry and go to the SEO field, I get this error ...
1 vote
1 answer
70 views

Redactor (or Twig?) Issue stripping <R> and <TM> strings

This is a Craft 3.7.x install with Redactor. My client is writing content referencing the proper usage of their trademarks. They'd like their content to state that it's permissible to use "...
1 vote
2 answers
87 views

Redactor // "Link to an entry" not available

maybe someone has an idea? The Redactor Rich Editor does not show "Link to an entry" - only "Insert link" is available (see screenshot). I'm pretty sure this might work, like in ...
1 vote
1 answer
76 views

Redactor customization: imagePosition, Craft 3.7

I have Redactor customized like this standard.json "imagePosition": { "left": "image-left", "right": "image-right", "center": &...
2 votes
1 answer
140 views

Redactor creating <p> tags outside it's parent

I am using redactor for creating a rich text field. The thing is that I'm using the exact same field on two separate sections. On one it is working fine, but on the other one, it is creating <p> ...
3 votes
1 answer
5k views

Rich text editor Redactor adding additional paragraph p tags

The rich text editor redactor is adding in additional p tags to rich text content. Is there a way to modify this so it accepts the unmodified HTML but still has the advantage of WYSIWYG editing? ...
1 vote
2 answers
191 views

How to force a default transform on existing content within a Redactor field

There isn't much documentation out there about how to apply image transforms to images in a Redactor field. I found this: Apply transform to image uploaded into Redactor? And it's useful, since I can ...
1 vote
1 answer
270 views

How to set settings of plugin Redactor

I install plugin "Redactor"(version. 3.0.3) (https://github.com/craftcms/redactor/blob/v2/README.md). I use this type field for full text of article. I cant understand how to set the place ...
2 votes
2 answers
4k views

Apply inline styles to selected text in Redactor

I'm aware, that this question is a little bit out of scope to Craft, but It relates, when redactor is part of Craft. I was playing around and I must tell, that it's horrible to create a text with ...
3 votes
2 answers
400 views

If YouTube in Redactor Then Wrap in Div

So I have been using this CSS Tricks responsive video trick for years. The problem I'm having is that this new Craft site I built imported data over from EE into a single Redactor field. Is there any ...
3 votes
1 answer
909 views

How do I set up the Rich Text Editor Field (Redactor) for code snippets?

I'm trying to set us the Rich Text Editor for inputting code snippets. I've almost got it working except when I go back to edit the entry Redactor removes spaces I entered to format the code. Also ...
4 votes
3 answers
5k views

Where do I add custom css for the Redactor editor in the Craft control panel?

Redactor provides a way to specify custom styles for content in the editor. It's documented here: http://imperavi.com/redactor/examples/typography/ How can I use this approach with Craft? I've ...
1 vote
1 answer
23 views

Why is my redactor table converted to a text when saving?

I added the table plugin to my Redactor field. In the redactor field I can now include a table (see image below). Upon saving the Redactor field, the table content is converted into text and put ...
2 votes
1 answer
135 views

Native syntax highlighting with Redactor

I would like my Redactor's content to include some code snippets but I don't know where to start. I just switched to CraftCMS from WordPress. My intuition says that there should be a way to add a ...
0 votes
0 answers
114 views

Prevent breaks in redactor

I'm trying to configure redactor in Craft 3 to only allow a single line. Setting "enterKey" to false seems great for typing, but pasting content still makes it add breaks. Here's my ...
1 vote
1 answer
43 views

Switch statement for redactor components

Is there a way to use a switch statement on redactors output i.e. to say - If this output is a video > use this code if this output is a Image > use this code Why? Well i'm trying to apply ...
1 vote
1 answer
781 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 = ...
2 votes
2 answers
634 views

How to customize fonts with redactor font menu

In Redactor it is easy to enable the font-family plugin via your redactor config, which gives us a menu in the wysiwyg shown below Is there a way to customize what font options show up here? I couldn'...
2 votes
1 answer
294 views

Redactor not working: Unable to find component class ''craft\redactor\Field''

I duplicated an existing site, and mostly everything is working, but I'm having a hard time with the Redactor plugin. In any field that uses it, Redactor is not enabled, and there's this message: ...
1 vote
1 answer
36 views

Settings for redactor's plugin Special characters

Is there a way to adjust Special Characters plugin's list of characters in Redactor settings (or in other config file)? I can make the changes I need (reduce plugins menu, add new characters) directly ...
6 votes
3 answers
6k 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
1 answer
427 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
5 answers
3k 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", "...
1 vote
1 answer
41 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 = ...
4 votes
1 answer
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
0 answers
76 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 ...
2 votes
3 answers
2k 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
1 answer
105 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). ...
1 vote
1 answer
763 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
1 answer
185 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?
2 votes
1 answer
182 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
0 answers
393 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
3 answers
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 ...
1 vote
1 answer
108 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
1 answer
77 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 ...
2 votes
1 answer
648 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
1 answer
387 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
1 answer
263 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
1 answer
282 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
1 answer
204 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
1 answer
547 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. ...
1 vote
2 answers
1k 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
2 3 4 5 6