Skip to main content

Questions tagged [ckeditor5]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

ckeditor: custom a tag is doubled

I am using ckeditor with some extras to render a button. This is part of my ckeditor config in the plugins settings link: { // Automatically add target="_blank" and rel="noopener ...
Merc's user avatar
  • 243
1 vote
1 answer
94 views

How to add a plugin to CKEditor 5 in craft 5?

There seemed to be a plugin that did exactly what I need: https://ckeditor.com/cke4/addon/simplebutton But first it is for CKEditor 4, but I am using Craft 5 and therefore CKEditor 5. So my questions ...
Merc's user avatar
  • 243
1 vote
1 answer
88 views

How to add a button or format style in Craft 5 CKEditor 5 (rich text field)

I read this: https://github.com/craftcms/ckeditor?tab=readme-ov-file#registering-custom-styles but to me that is not clear where I should add this code. Do I have to add this within the CK editor ...
Merc's user avatar
  • 243
1 vote
0 answers
77 views

Custom HTML tag removed from ckEditor5 on save

I've created a custom ckeditor5 plugin. The plugin adds a new button to ckeditor5 toolbar to add a custom HTML tag with some data. Switching between view and model in ckeditor works fine. But from ...
user3086053's user avatar
2 votes
1 answer
862 views

ckEditor and line breaks

Here's something about line breaks I don't understand. I've recently upgraded from Redactor to ckEditor on a project that accepts public submissions to a job board. These jobs are almost always copy/...
Mosswalker's user avatar
1 vote
1 answer
653 views

How to add the option for a link to select a target, e.g. open link in new window? [CKEDITOR Plugin]

I want certain links on the website which I added in a CKEditor field to open in a new tab/window by adding the target attribute "_blank". By default, there is no option to select this ...
flip's user avatar
  • 159
1 vote
1 answer
389 views

CKEditor 4: Open Link in new Tab

Craft 5 // CKEditor 4 I'm really missing an option to open a link in a new Tab. an external link should open in a new tab by default sometimes the redacteur needs to have the option to open an entry ...
Marc 's user avatar
  • 344
2 votes
1 answer
338 views

Craft 5, CKEditor accessing parent entry from partial

Craft 5, CKEditor accessing parent entry from partial Is it possible to access the parent entry from a partial template being rendered from an embedded entry in a CKEditor field? For example, consider ...
Jason's user avatar
  • 358
1 vote
1 answer
139 views

Adding CKEditor first party packages

The plugin documentation for craft ckeditor says that first party packages include a build file that I need to add the plugin. I'm not seeing a build directory in any of the ckeditor first party ...
Collyn's user avatar
  • 13
1 vote
3 answers
382 views

CKEditor 5: Paste plain text

I'm testing the new CKEditor: https://craftcms.com/blog/ckeditor-revamped One of my very first check is "copy & paste" into the RTE, because my editors WILL do this. (I know my editors .....
Marc 's user avatar
  • 344
1 vote
1 answer
49 views

Page Breaks in CKEditor

I've added a page break in my CKEditor field. When I output the field in my template it dumps everything in the field. How do I withhold the content after the page break?
Grabius's user avatar
  • 21
1 vote
2 answers
142 views

Prevent CKEditor5 from filtering out classes

CKEditor5 filters out any classes applied to HTML elements. However, I'd like to allow certain classes to be applied to <ul> elements (e.g. class1, class2) without CKEditor5 stripping them out. ...
user3092's user avatar
  • 117
1 vote
2 answers
940 views

Craft 4, CKEditor 5, image resizeOptions not showing in image toolbar

I'm experimenting with all the CKEditor 5 config options and I like how the docs have the image resize (https://ckeditor.com/docs/ckeditor5/latest/features/images/images-overview.html#image-contextual-...
Amanda Lutz's user avatar
1 vote
1 answer
1k views

How to add additional features (plugins) to ckeditor5

using the new ckeditor5 and want to include additional features https://ckeditor.com/docs/ckeditor5/latest/features/text-transformation.html I want to convert quotes ("") to european quotes (...
Henrik's user avatar
  • 425
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. ...
BBaysinger's user avatar
1 vote
1 answer
99 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 ...
MrGlasspoole's user avatar
1 vote
1 answer
171 views

Plugin CKEditor outputs something with nothing?

I have a problem with the CkEditor for Craft CMS. If I leave the textfield empty and save it, the output in the browser will still contain <p>&nbsp;</p> when I want it to be blank. I ...
Joe's user avatar
  • 79
1 vote
2 answers
352 views

CKEditor Null Value

I'm using CKEditor as one of my fields, I'm trying to detect if there is any content within them, unfortunately it's still appearing even using the below code (and the field is actually empty). {% if ...
JMKelley's user avatar
  • 1,446
2 votes
1 answer
1k views

How to add a button or format style in Craft 3 CKEditor (rich text field)

I'm looking to customize the CKEditor (rich text field) to restrict my client to only these buttons: h2, p, bold, italic, underline, link & unordered list.
mateostabio's user avatar
2 votes
1 answer
1k views

Customising the new CKEditor5 in Craft 3

How do you configure the new CKEditor editor to e.g. add images? Do you create a config/CKeditor folder with a .json file and install the @ckeditor/ckeditor5-image package?
Nutmeg's user avatar
  • 598