Questions tagged [redactor]

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

Filter by
Sorted by
Tagged with
1 vote
2 answers
106 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 ...
Emma Swann's user avatar
1 vote
1 answer
46 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 ...
Moritz's user avatar
  • 69
0 votes
0 answers
53 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 ...
Droemmelbert's user avatar
1 vote
2 answers
66 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 ...
Marc 's user avatar
  • 75
1 vote
1 answer
62 views

Redactor customization: imagePosition, Craft 3.7

I have Redactor customized like this standard.json "imagePosition": { "left": "image-left", "right": "image-right", "center": &...
4midori's user avatar
  • 656
1 vote
1 answer
67 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 "...
Ed Hebert's user avatar
  • 145
2 votes
1 answer
103 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> ...
mencantalamelva's user avatar
1 vote
1 answer
178 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 ...
Dimi's user avatar
  • 273
1 vote
1 answer
20 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 ...
Droemmelbert's user avatar
1 vote
2 answers
157 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 ...
Álvaro Franz's user avatar
2 votes
1 answer
120 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 ...
Álvaro Franz's user avatar
0 votes
0 answers
92 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 ...
Mik's user avatar
  • 1
1 vote
1 answer
41 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 ...
Wally's user avatar
  • 333
2 votes
2 answers
549 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'...
Augustine Calvino's user avatar
2 votes
1 answer
268 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: ...
mauricio's user avatar
  • 187
1 vote
1 answer
35 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 ...
klaxon's user avatar
  • 65
1 vote
1 answer
394 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":...
ponies's user avatar
  • 387
1 vote
1 answer
685 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 = ...
psithu's user avatar
  • 41
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 = ...
katsele's user avatar
  • 33
0 votes
0 answers
73 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 ...
Cole Henley's user avatar
  • 1,741
1 vote
1 answer
89 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). ...
Cole Henley's user avatar
  • 1,741
1 vote
1 answer
675 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)...
Jake1293's user avatar
  • 149
1 vote
1 answer
158 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?
Deepak Kale's user avatar
0 votes
0 answers
376 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,...
Thurc1996's user avatar
1 vote
1 answer
101 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::...
noregt's user avatar
  • 1,062
1 vote
1 answer
69 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 ...
Wally's user avatar
  • 333
2 votes
1 answer
577 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: ...
Paul Frost's user avatar
  • 1,048
1 vote
1 answer
247 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?
Rakshita Solanki's user avatar
0 votes
1 answer
337 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?
Sakshi Jain's user avatar
1 vote
1 answer
190 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 ...
tfantina's user avatar
  • 125
1 vote
1 answer
493 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. ...
Matt P's user avatar
  • 1,538
2 votes
1 answer
172 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 &...
Håvard LJ's user avatar
1 vote
1 answer
81 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 ...
analog junkie's user avatar
1 vote
1 answer
183 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. . ....
Deepak Kale's user avatar
2 votes
1 answer
212 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 ...
Jake1293's user avatar
  • 149
1 vote
1 answer
62 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 ...
Garrett's user avatar
  • 417
3 votes
1 answer
377 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). ...
Mark Middleton's user avatar
0 votes
0 answers
23 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​...
Dan Lee's user avatar
  • 1,107
1 vote
1 answer
750 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 ...
dominik's user avatar
  • 21
1 vote
1 answer
827 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 ...
Lee's user avatar
  • 139
1 vote
1 answer
255 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 ...
joep's user avatar
  • 610
1 vote
1 answer
126 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 ...
Mark Northrop's user avatar
1 vote
1 answer
197 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 ...
muddygrey's user avatar
1 vote
1 answer
282 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.
Rakhi Vijayan's user avatar
1 vote
2 answers
244 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: ...
Rain's user avatar
  • 21
0 votes
0 answers
149 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 ...
Rakhi Vijayan's user avatar
4 votes
0 answers
230 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 ...
James Sudimak's user avatar
1 vote
1 answer
565 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. ...
Josh Parylak's user avatar
1 vote
1 answer
510 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 (...
Arvid's user avatar
  • 292
1 vote
0 answers
135 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 ...
OneMohrTime's user avatar

1
2 3 4 5 6