Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Use it for questions about the assistive, WYSIWYG text editor used as input filter: CKEditor.

0
votes
0answers
11 views

Add class to any element with CKEditor

Is there a way to add class to any element through CKEditor? Here is an example: I create a list with CKEditor and I want to add a class to the ul tag. Or maybe on one of the li. Everything without ...
0
votes
0answers
26 views

CKEditor oEmbed Plugin Shows up in config but not in actual Editor instance

The issue I'm having is very similar to this question, but the solutions here did not work for me. The steps I took: Downloaded the latest version of the oEmbed plugin from https://ckeditor.com/...
1
vote
1answer
19 views

How can I disable image resizing in CKEditor?

Our site is responsive and when editors use the resizing handles after uploading an image into the editor, it puts in fixed width and height on the image. We don't want them resizing images at all, ...
0
votes
0answers
10 views

HTML Purifier Ckeditor accordions shortcode is blocked

I am using Drupal 8.5.7 and HTML Purifier 8.x-1.0-rc1. And also using Ckeditor Shortcodes. HTML Purifier is blocking the [accordions] shortcode. I'm sure its a setting in /admin/config/content/...
1
vote
1answer
29 views

WYSIWYG CKEditor is altering source text on reload. Why?

I created a paragraph with a text field that uses CKEditor text editor with Full HTML enabled. I switched to the Source view and pasted the following code into CKEditor. <!doctype html><html ...
0
votes
1answer
19 views

Link to content within node, from CKEditor WYSIWYG

This seems like it should be fairly simple, but I'm having trouble getting off the ground. I have a content type "Document". This content type has a field of type File, which allows for uploading PDF'...
1
vote
1answer
28 views

Capturing keyup event (JavaScript) from Drupal editors (CKeditor)

I maintain the Textfield Counter module. An issue was raised that the module does not work for textareas with CKEditor enabled. I need to catch a keyup event from editors, or even just the CKEditor ...
1
vote
0answers
118 views

How do I practically use the media library?

Now that Drupal 8.6 is released, I tried the experimental Media Library module. It works great, but it needs some additions. How can I use core Media Library with CKeditor? How can I fill custom ...
0
votes
1answer
34 views

Add fields to image upload option in CKEditor

I make SVGs using LaTeX and would like to upload both the image and its LaTeX source code when I attach an imagine via CKEditor. I don't want the code to be displayed, just stored with the image so ...
0
votes
1answer
31 views

HTML Purifier module and upload YouTube videos not working

I am using the HTML Purifier module https://www.drupal.org/project/htmlpurifier. And Drupal version 8.5.6. Most of the help I could find is for Drupal version 7. When I try to embed a YouTube video ...
0
votes
0answers
12 views

CKeditor shows only frame and alt text instead of actual image

I want to insert an image on a page. I am able to upload and insert an image through CKeditor (or IMCE? I am not sure, because I installed that module, too), but it shows only an image frame (and a ...
1
vote
0answers
49 views

How can I add classes to images added in CKEditor via Media?

Similar question to How to set width to Media entity image in CKEditor BUT I am trying to do more than insert various sizes of images, I want to add classes to the actual img tag. So when I insert an ...
-3
votes
1answer
101 views

How to add advanced CKEditor dialog tab for iframe?

<?php namespace Drupal\custom_ckeditor\Plugin\CKEditorPlugin; use Drupal\editor\Entity\Editor; use Drupal\ckeditor\CKEditorPluginBase; /** * Defines the "dialogadvtab" plugin. * * @...
1
vote
1answer
37 views

hook_editor_js_settings_alter()

I am using hook_editor_js_settings_alter() to disallow HTML tags in Ckeditor. It is only working in node edit form, and Ckeditor is in edit mode. Wen I preview the published page it allows the tags in ...
0
votes
0answers
31 views

Ckeditor Allow all html tags and disallow a few

By default Drupal provides a form under text formats to allow some html tags, then it will disallow anything not in this allow list. I would like to do the opposite of this. Allow all html tags then ...
0
votes
0answers
31 views

CKEditor addon dependency searching in core module path

I am using Drupal 8 and having custom ckeditor module where I am adding plugins. I have downloaded iframe and fakeobjects addon and placed in the libraries folder. Then in my custom module, under ...
0
votes
0answers
42 views

CKEditor Image Button: Cannot insert images in body of a basic page - “Image field is required”

I am using CKEditor and WYSIWYG. After updating Drupal core to 8.5.6, I cannot upload an image using the CKEditor's 'image' button anymore saying "Image Field is required." I have checked CKEditor's ...
0
votes
1answer
19 views

Gray overlay and no dialog when clicking Image button in CKEditor

Attempting to get CKEditor and Media to work together on a Drupal7 site. Things are mostly working great, but when I click the regular Image button (or double-click an image, or use the context menu ...
0
votes
0answers
23 views

Properly export text format and editor settings

I'm trying to export the CKeditor settings and restricted_html settings but it's partially imported in the end. I'm exporting the editor.editor.restricted_html.yml and the filter.format....
0
votes
1answer
50 views

How do I disable/enable the Advanced Content Filtering (ACF) in CKEditor 4.8.0?

Please tolerate me for asking such a question. All the answers I found are for Drupal 7. There is barely any talk on this issue for Drupal 8. I am a beginner in Drupal and I am not a programming ...
0
votes
2answers
54 views

Allow users to use embedded HTML tags in custom blocks

I'm using CKEditor in Drupal 8 and the client wants to write HTML that contains embedded tags like so <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#...
0
votes
2answers
23 views

How can I set a custom CKEditor on only one field?

I'm using Drupal 8. I have a field that can only allow for specific styles, so I created a custom CKEditor and set the field to use it. Now when I go to the field on the content edit form, I see the ...
1
vote
0answers
76 views

CKEditor, create a dropdown button

From Drupal 8, I'm looking for create a very sample CKEditor plugin (CKEditor version 4.8). This plugin allows the user (me) to add quickly specifics tag in the text. After some google search, I find ...
0
votes
0answers
12 views

“Edit Image” failing with “The specified file foo-man-chu.webp could not be uploaded.”

I am attempting to replace a JPEG with a WEBP image within the Body of a Basic page, editing with CKEditor. I have added ImageMagick and GraphicsMagick alongside GD and the debug information shows ...
0
votes
0answers
39 views

How to have a WYSIWYG in all “Help text” field area

By default, the "Help Text" area that you can fill for a field in the Edit field form of a content type (or taxonomy, or...) doesn't use ckeditor. Here is what we can see under the text area: ...
0
votes
0answers
15 views

Issue with link toggle

I have a Drupal 7 site that is using the CKEditor module (version 7.x-1.18). When you click on the link it toggles back and forth from "Switch to plain text editor" to "Switch to rich text editor". I ...
0
votes
1answer
29 views

Paste a full SVG content to CKEditor - not working

I tried to paste a full SVG content into the CKEditor Full HTML Source But it gets corrupted and not working
0
votes
1answer
15 views

How to configure Wysiwyg + Ckeditor Library not to breaks source code lines

I'm using WYSIWYG Module with ckeditor as an editor. I use it with the full_html format My problem is that when switching from the rich-code to the source code view all the line breaks are removed. ...
0
votes
0answers
29 views

How to allow [ngx-scroll-to] property for anchor tag in CKeditor

We have a AngularJs Template. We were trying to add [ngx-scroll-to] property for anchor tag. But seems to be editor stripping the square brackets when saving the content or when switching to editor ...
0
votes
2answers
139 views

Drupal 8 - Use CKEditor on textarea in custom module's controller response

I am trying to figure out how to use Drupal 8's CKEditor on <textarea></textarea> tags that are part of a controllers markup and not generated from a Drupal form. Has anyone done this or ...
0
votes
0answers
42 views

CKEditor and IMCE modules not working fine

I am having problems trying to integrate IMCE with CKEditor. I have followed readme.txt instructions from IMCE module but it still not working. I have set IMCE on File browser type (Link dialog ...
0
votes
0answers
16 views

Remove character limit for Caption on CKEditor with Media embed

I need to remove or overwrite the maxlength attribute for the caption (currently 128). There is another similar/identical question on this website, but the solution provided is not working. Is there ...
0
votes
0answers
13 views

How to add “open in new tab” option in CkEditor [duplicate]

Now, we can only add link. But our client is looking for an option in Ckeditor for adding an option to addition of "Open in NEW tab" option with Link. Do we have any module or any trick for solution ...
0
votes
0answers
24 views

Ckeditor only shows a textarea

So i created a content type that has a paragraph with a formatted long field in it. The content type itself also has a formatted long field. These two fields should be ckeditor Full html. But when ...
1
vote
1answer
139 views

How to convert the drupal-entity tag into an img tag?

I have a content type with a text field that uses CKEditor, in the editor is possible to add a media entity image, once the image is inserted inside the text the html tag for it is: <p>Document&...
2
votes
1answer
265 views

Drupal 8 - CKEditor allow user to specify image dimensions

I have a use case where content editors have a requirement to specify the height and the width of an image in the image properties. Sticking to styles is not possible because $reasons. The CKEditor ...
0
votes
0answers
44 views

CK editor not showing

Using latest Drupal 7. Cannot figure out why CK editor is not showing. Granted all permissions to my administrative user, cannot edit configuration because links don't work, no dropdowns. What am I ...
0
votes
0answers
70 views

Justify buttom not showing in CKEditor 4.6.2

I am using CKEditor 4.6.2, Wysiwyg 7.x-2.4 also I have download justify plugin 4.6.2 from https://ckeditor.com/cke4/addon/justify and added jQuery(function() { CKEDITOR.config.extraPlugins = '...
0
votes
2answers
45 views

CKeditor not showing for authorized users

Drupal 8.5.3, all modules and themes up to date. The CKEditor only shows up for administrator users when creating or editing nodes. The authorized users are listed as Roles for the Text Format "Basic ...
0
votes
1answer
66 views

Drupal.behaviors.customCKEditorConfig

I am trying to use the Disallowed Content configuration from Ckeditor. https://docs.ckeditor.com/ckeditor4/latest/guide/dev_disallowed_content.html I am using Drupal 8.5.3 Lightning 8.x-3 and the ...
1
vote
1answer
43 views

CKEditor filtered HTML body field is not showing for non-administrator users when editing [closed]

I am on drupal 7.56. Something really disturbing happens. I have created a custom content type named "Information" that uses the default body field. I granted access to this content to ...
0
votes
1answer
152 views

Link media images

We've transitioned to the media module for our Drupal 8 site. However, after extensive futzing, I can't figure out how to add a link to an embedded media image. When you click on the media image, ...
1
vote
0answers
68 views

CKEditor Internal links are not prefixed with language

I have a multilingual Drupal site and I noticed that the paths of relative links added by CKEditor ignore the current language prefix and redirect to that node pages with default language (ie. /cn/...
0
votes
1answer
38 views

CKEditor break quotes: Why? [duplicate]

On the forum I made a quote using the Quote module. It works fine for the administrator, but it doesn't work for the anonymous users. The module defines a function, called via an ajax request, which ...
0
votes
0answers
126 views

CKeditor problems

Hopefully, you can do something for me. Since quite some time – with interruptions, I am trying to make all the useful feature of CKeditor work. I manage to use different text colors and backgrounds. ...
0
votes
0answers
21 views

Images are temporary

When uploading images using CKEditor, they are saved as "temporary" under Content > Files, and are deleted after 6 hours. Is there a way to make sure that all uploaded images using CKEditor image ...
0
votes
1answer
501 views

How to print text (formatted, long) in twig without raw filter?

We have a text (formatted, long) field that is used to insert embed code such as the Youtube embed code for videos. When printing the field in twig we are finding that rather than rendering the ...
0
votes
1answer
21 views

CkEditor Toolbar not available/visible to Administrator when creating content

I am having a strange problem on my local dev site install. When either Basic HTML or Full HTML mode is selected in CkEditor, the toolbar and the whole area where text would be typed, are not ...
-1
votes
1answer
160 views

How do I programmatically remove a ckeditor button based on a user permission

Without creating a whole new text format and ckeditor profile, I want the "view source" button removed for certain users dynamically, so this needs to happen in a hook or something.
1
vote
1answer
75 views

Drupal 7. Webform textarea with a html editor

I am using drupal 7.56 I used the webform module to create a custom form which contains a textarea. I want to add a html editor to my textarea. I tested webform_html_textarea but it's not what I ...