Questions tagged [redactor]

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

31 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
265 views

Can I change the image position dropdown in Redactor?

I want to change the image position dropdown in the "Edit Image" window or add a new one that give me a different way to control image position. Rather than having this dropdown change the float, I ...
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
vote
0answers
89 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 ...
1
vote
0answers
398 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
0answers
375 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
0answers
93 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
0answers
46 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
1
vote
0answers
123 views

Redactor has destroyed my mailto links, now what?

I migrated from EE > CraftCMS. The email links in my EE WYGWAM fields were encoded as JS. When we imported to CraftCMS we lost all of those links. They now look like this: <a>joe@schmoe.com</...
1
vote
0answers
19 views

Section permissions are ignored when linking to an entry

Users with permissions to limited sections can still “link to an entry” in any section from within the WYSIWYG (Redactor) editor. I'm using Craft 2 with a Rich Text (Redactor) field. Is this a bug ...
1
vote
0answers
33 views

How can I prevent Redactor italicising text within asterisks?

In my Rich Text field, I've got some text that looks like this (it uses an unordered list): • Line 1 • Line 2* • Line 3 * Here is some more text The problem is that the "Line 3" text is appearing ...
1
vote
0answers
184 views

Redactor inserts reference tags into IMG when using image transforms, but tag not being processed by parseRefs

Been working with Craft for about a year, but today for the first time I had to modify the Redactor config to place images inside a body field. I added 'image' to my buttons array and everything ...
1
vote
0answers
316 views

Using formattingAdd for custom <pre> adding multiple <pre> tags

Using Redactor in CraftCMS I've added the following to the redactor/Standard.json file: { "formattingAdd": { "pre-php": { "title": "PHP Code", "args": ["pre", "...
1
vote
0answers
124 views

Order of Redactor format options using formattingAdd

I'm using formattingAdd in a JSON config file for redactor. The items do not appear in the menu in the order I define them. After some searching I realise the format for formattingAdd is an object ...
1
vote
0answers
91 views

How may I restrict uploads to a single folder with variables within a Rich Text Field?

Craft's Asset Fields allow you to restrict uploads to a single folder—and even pass through a variable to create a dynamic path. How may I restrict uploads to a single folder with variables like this ...
1
vote
0answers
73 views

Redactor II issue - adding completely random linebreaks to pasted text

(This is not a duplicate of Redactor II Craft 2.5 Prevent Paragraphs) I am trying to paste in text from LibreOffice and the text ends up in Redactor II with, as far as I can tell, completely random ...
1
vote
0answers
446 views

Image not showing up in Redactor text editor

When i try to add an image in a bit of text, it does not show up. I get the assets model and can choose an image, but the image itself seems broken in the text. I also see this error in the craft.log:...
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
40 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 = ...
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 ...
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 ...
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 ...
0
votes
0answers
69 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
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 &...
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
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 ...
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 ...
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​...
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 ...
0
votes
0answers
189 views

Redactor entry links to dev server

When building a site locally and linking to entries in redactor fields, all of the links are being saved in the database with links to my local dev server (http://mysite.test/path/). Is there a config ...
0
votes
0answers
173 views

Redactor Styles Plugin stopped working

The very useful Redactor Styles plugin has stopped working for me. I have the little wand in the toolbar, and appropriately styled entries in the drop down, but clicking on them does nothing. Styles ...