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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
1answer
14 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
16 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....
-1
votes
0answers
24 views

How to test plugin(tool) in CKEditor with Behat?

I need to write test the CKEditor plugin/buttons and functionality implemented for those buttons. I am using Behat to write test cases. Anyone have some suggestion how this can be implemented?
0
votes
1answer
25 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
45 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
20 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
40 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
11 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
15 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
13 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
16 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
12 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
16 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
49 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
32 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
11 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
12 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
23 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
83 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&...
1
vote
1answer
69 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
25 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
48 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
35 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
48 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
71 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
50 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
30 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
95 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
20 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
351 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
20 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
87 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
57 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 ...
0
votes
0answers
36 views

Direct access to IMCE / CKEditor file browser window?

What's the most direct way to access the IMCE / CKEditor (CKFinder?) file browser window? I'm referring to this thing: The intent would be to make it easier for content editors to interact with all ...
1
vote
0answers
56 views

Include a CKEditor Plugin in an Install Profile / Distribution

I am working on an install profile that needs some CKEditor plugins. For example. the template plugin. You can add the module no problem: composer require drupal/wysiwyg_templates Getting the JS ...
0
votes
2answers
118 views

Mathjax module does not render on edit ckeditor

I have installed mathjax module and ckeditor module, but when I try to insert math code using math button on ckeditor, the math codes does not rendered correctely, math code become hidden. Math code ...
1
vote
1answer
76 views

How to use ckeditor layout on textfield input ? (Drupal 8)

Hello Drupal masters ! I have a content type with a "Text (formated)" field. When I try to write something in it, all my HTML is ok. But I want to use the buttons of ckEditor to make it more "user ...
0
votes
0answers
39 views

Cannot save a page with the word “from” in it

Whether it is a new or existing page, if the body text includes the word "from", the save process throws a 500 (Internal Server Error) and doesn't save. It appears that the "from" text has to be all ...
0
votes
2answers
359 views

CKEditor and IMCE: how to access to public files directory

I have a problem that I can't access public files directory from IMCE as file browser (and CKEDITOR as editor). When an user write a blog post, he can't upload images to public directory because this ...
0
votes
1answer
30 views

8.4.4 CKEditor Link & Unlink Buttons suddenly missing

In Drupal 8.4.4 the CKEditor is suddenly missing the Link and Unlink buttons for all content types, for the Basic Editor and the Full HTML Editor as well. My users and I can no longer add links to ...
0
votes
0answers
73 views

Using IMCE to access private file path outside site root

Is there a way to manage/access private files stored outside the site root in Drupal 8 with IMCE? I am not having any luck with it so far. I ideally I would like my users - via CKEditor - to be able ...
0
votes
0answers
16 views

CKEditor of the system core

With an unmodified D8 installation except Admin-toolbar, when configuring the CKEditor toolbar in simple HTML, the "Justify" buttons are not taken into account. Is this a bug?
0
votes
1answer
224 views

Drupal 8 Customize CKEditor Format Options

Drupal 8.4.x I am trying to add custom formats to the ckeditor dropdown. Having the Geshi Filter module installed it would be nice to have the tags associated with the different languages available ...
0
votes
1answer
415 views

Automatically add class to <ul> to WYSIWYG

Is it possible to automatically add a class to each <ul> element added to the CKEditor WYSIWYG? In my project, I decided to not style ul > li in order to not have to rewrite CSS for each ul ...
0
votes
2answers
45 views

How do I avoid the HTML I enter is altered?

I use drupal 8.4.3 with ckeditor 4.7.2 (apparently) When I press the "source" button, I want to be able to write whatever source I want, in just one line if I want to, I don't want the ckeditor to ...
3
votes
1answer
293 views

Wrapping content in anchor tags with CKEditor in Drupal 8

I am trying to wrap a block of HTML content in an tag in a Drupal 8 installation: <a href="/link"><h2>Link 1</h2><h3>Subheader link 1</h3></a> CKEditor changes ...
1
vote
0answers
43 views

Is there a way to preserve multi-level heading tags when pasting from MS Word into CKeditor?

CKEditor is now part of Drupal (which is great). It is now possible to deliver Drupal to clients that are frightened when they see HTML-markup! However, some clients of this type are in love with ...
0
votes
1answer
40 views

Enable CKEditor on a field with a custom widget

I have a custom widget for a field that hides the field if certain conditions are not met. My custom widget field extends the StringTextareaWidget class as a base. When it renders, my widget never ...
0
votes
0answers
122 views

Ckeditor images use different image sizes based on device screen size

For images embedded into the Ckeditor body. I want images to load that have been specifically sized for the user screen based on breakpoints. Just like the Responsive Images module in Drupal 8. Is ...