Questions tagged [wysiwyg]
Use it for questions about the WYSIWYG editors made available in Drupal.
851
questions
1
vote
1
answer
28
views
How can I use a text editor on a page summary field?
In Drupal 7 I have the WYSIWYG module installed which provides a configuration setting "Enable on summary fields" to allow the HTML editor to be used on summary fields.
The WYSIWYG module is ...
1
vote
1
answer
32
views
How to add new fields to the 'edit media' dialog box on media embeds
I'm attempting to add a new select box to the dialog box that pops up when choosing 'edit media' on a media embed in a WYSIWYG. I'm referring to the dialog box that presents options like 'caption' and ...
0
votes
0
answers
10
views
Module for CKEditor that provides a button to check for broken links
Are there any modules for Drupal 9 that provide a button for CKeditor that allows the user to check for broken links before saving the content?
I imagine it working like this:
The user goes to a node ...
0
votes
0
answers
24
views
Ckeditor does not show the latest image
I have a media item that is displayed in the body field with Ckeditor with the following markup.
<drupal-media data-align="center" data-entity-type="media" data-entity-uuid=&...
0
votes
1
answer
32
views
Linkit Module - Pointing the link's title attribute to a custom field. Hook available? [closed]
Currently the Linkit module delivers the link's title attribute by pulling the related node's title field.
We would like it to point to another field in the node.
How can we achieve this?
I looked ...
1
vote
0
answers
49
views
How to change the CKeditor button for media library module [closed]
The Drupal 9 Media Library includes a button for CKeditor. The button depicts an image icon combined with musical notes. We plan to only use this button for video. How can I replace this button with ...
1
vote
0
answers
48
views
Make table fully accessible use CKEditor 4.17.1
I'm working on a website that needs to be fully accessible following the WCAG guidelines. Therefor I need my table output, created via the CKEditor 4.17.1 in Drupal 9, to be set with the scope ...
0
votes
1
answer
26
views
Drupal 7 and/or CKEditor adding paragraphs to code breaking styling
I've recently started a new job where I'm managing a Drupal 7 website for the first time. We will be moving away from this platform soon, but I have to maintain this site for the time being.
I'm ...
1
vote
1
answer
22
views
Existing pages not editable for admin with all permissions
You know the drill. User of various CMSs but new to Drupal and inherited a site running version 8.6.10. New pages (nodes?) can be created but once something is created, nothing on/under the Edit tab ...
1
vote
1
answer
193
views
Migrating Wysiwyg/Ckeditor embedded images to embeded images
I am migrating a Drupal 7 site that is using:
drupal/wysiwyg:^2.9' (plus the ckeditor library)
drupal/media:^2.27'
drupal/media_ckeditor:^2.14'
In Drupal 7, when you insert an image into the wysiwyg ...
0
votes
0
answers
38
views
CKEditor hides from my testing tool
I am building an automated testing tool for the drupal site that I maintain. The site has migrated to D9 and functions normally for a human user. When my python scripts pull up selenium/Chrome ...
2
votes
1
answer
47
views
Enable image resizer for all images in the ckeditor
I'm using Drupal 9.2.9,
I have some migrated content that comes from an external source. there are some <img tags,
the Ckeditor image resizer is working for the images I insert into the editor the ...
0
votes
0
answers
14
views
WYSIWYG images in AMP Module
I have a Drupal 7 website, the site has AMP module installed. When I insert a image in WYSIWYG editor the site is not converted to AMP mobile version (in image fields there is no problem).How can I ...
1
vote
0
answers
24
views
Display WYSIWYG editor group names to endusers modifying content
When one is editing the Toolbar Configuration in a Text Format in Drupal 8, group names can be added to the editor as part of grouping the buttons in the toolbar.
Is it possible to expose those group ...
0
votes
0
answers
25
views
Can't open url link or images in CKEditor on a modal form
I have created a custom form with a text field that uses ckeditor. I open this form in a modal window. It works good, but if you try to use url link button or image button, because they are opened in ...
0
votes
1
answer
49
views
Ckeditor inline images path
I am running a Drupal 9 site and I expect my users to upload a lot of files with the ckeditor functionality. All of those files will be
stored in a single folder.
I heard that this will cause ...
0
votes
0
answers
231
views
Add custom buttons to TinyMCE editor toolbar
I'm trying to add a custom button to my TinyMCE editor in Wysiwyg on a Drupal 7 install.
I've managed to adapt TinyMCE settings to work in my custom module, like so:
function ...
1
vote
0
answers
81
views
Disable source code formatting in CkEditor
In Drupal 9, is there a way to avoid CkEditor re-formats the source code?
There is one text editing mode set in Drupal, Full HTML. When I edit or create a Basic page node, once I click the Source ...
1
vote
0
answers
27
views
Remove a button from CKEditor based on the role of the current user
I have a text format which should access by user role A and the admins but I only want the admins to see the "Source code" button. User's of the role A should not see this button but they ...
0
votes
1
answer
53
views
Unable to preview media items
I have a node page where, in the WYSIWYG, I have embedded about 50 media items. When I edit the node, I can see this error for some of the media items.
An error occurred while trying to preview the ...
2
votes
0
answers
49
views
How to add conditional on Gutenberg's color theme-support?
I've added the Gutenberg theme-support on my custom theme. I want to add conditional based on text color and background color. For example, selecting the black color background will reset the default ...
2
votes
2
answers
715
views
How can I stop the full HTML editor from deleting my <p> paragraph?
https://drupal.slack.com/archives/C1BB308HH/p1602318464360700 Link to slack question in #support
JSFiddle of the offending html: https://jsfiddle.net/tyeth/xr4ohast/
Demo Video showing the paragraph ...
0
votes
1
answer
162
views
Allow specific HTML tags inside a text field of a custom content type using CKEditor
I would like to add a new content type with a field which supports some HTML tags. So far, I added a text editor format and there I chose CKEditor as the editor and edited the list of allowed tags ...
2
votes
0
answers
433
views
CKeditor Media Edit: AJAX HTTP error 500 [closed]
How can I fix the AJAX HTTP error 500 to make the "Edit media" button in the body of the CKeditor work?
I am trying to use the "Edit media" function to edit an image, which was ...
2
votes
2
answers
563
views
Can users be forced to insert only plain text by default in CKEditor?
I know there is "Paste Text" button in CKEditor, and I can limit allowed HTML tags.
But it's very hard to explain clients to use specific button when they insert text.
As result they often ...
0
votes
0
answers
24
views
Issue with CKeditor
I am building in Drupal 9.0.5 and just discovered that the Styles dropdown menu in the CKEditor is disabled even though I have classes listed. Not sure what's wrong. I've read and read and I'm pretty ...
0
votes
1
answer
39
views
HTML tags after umlauts causing premature header sending - CK editor
I'm maintaining some old Drupal 7 site (not created by me) and since couple of months ago it started acting strange (I didn't make any change on site):
Inside some content type there is a formatted ...
1
vote
1
answer
88
views
How to render text including video embed field
I have a formatted text field, and am using the video_embed module to allow users to embed video into that field, using the video_embed_wysiwyg submodule.
I am then trying to render the field in a ...
1
vote
1
answer
126
views
Drupal 8 CKEeditor license/pricing
Drupal 8 ships with ckeditor as the default text editor. Drupal itself can be used free of charge without limitations. At least this is what I thought until now.
While CKEditor seems to be OpenSource, ...
1
vote
1
answer
188
views
How to automatically generate anchor ids to CKEditor added headers
How can i automatically generate anchor ids to h2 and h3 added using ck editor ?
I need it for making a table of content.
0
votes
1
answer
283
views
Is there a way to enable the Gutenberg editor so I can use it with custom blocks?
I've installed the Gutenberg Editor module and have it working with various content types, however I'd like to also use it to create content for custom blocks (as in structure > block layout > ...
0
votes
1
answer
73
views
Why am I not seeing CKEditor buttons on prod?
Okay, so I configured the Full HTML text format and added some buttons to CKEditor locally in a Lando environment. Then I exported the configuration with drush cex, committed it, pulled and imported ...
0
votes
2
answers
334
views
CKEditor adds extra <p> tag
CKEditor inserts extra <p> tags when users enter a newline.
How do I disable this automatic paragraph tag?
0
votes
0
answers
48
views
I can't see the newly added toolbar buttons I added to CKEditor
I have added some new buttons from the toolbar configuration onto the BasicHTML profile of CKEditor
(admin/config/content/formats/manage/basic_html)
I've added the standard text alignment buttons and ...
0
votes
1
answer
449
views
CKEditor strips all inline CSS and some tokens
I'm trying to add a color and font size to some text using the CKEditor. As soon as I save it these are stripped out.
I've also noticed some tokens are stripped down when certain settings are enabled.
...
0
votes
1
answer
43
views
CKeditor doesn't work in controller response within a default theme
In a Drupal 8 project I've a controller which returns a form that contains a text_format field.
CKeditor is working perfectly in my administration theme (Stable), but it does not on the default theme....
0
votes
0
answers
21
views
Get data from one editor field and pass that into another editor field
I have no idea if this is even possible, but I figured I'd ask anyway.
I'm working with a site that is on Drupal 8, and long story short, we don't have access to extending nor updating much so any ...
0
votes
0
answers
33
views
When/how are text format filters executed/applied?
I was experimenting in D8 with filters on text-formats to understand why i was not seeing CSS i had placed in a block.
Turning on and off Limit allowed HTML tags and correct faulty HTML and Correct ...
0
votes
1
answer
41
views
impossible to save source code in wysiwyg blocks if <a> does not contains some strings
It is impossible to use an icon as anchor in wysiwyg blocks.
<a href="https://myfburl"><i class="fab fa-facebook-f "></i></a>
The content is lost when editing back a block
...
0
votes
0
answers
58
views
Drupal 7 WYSIWYG module with CKeditor library stripping form and input HTML tags when inserted into a block
I'm wanting to add some code snippets from MailChimp. We are using the WYSIWYG module (7.x-2.5) with the CKeditor library version (4.9.2.9). When I add the code to a block it is stripping out when ...
-4
votes
1
answer
444
views
Editing classes on a div in CKEditor
We are using the ckeditor_div_manager module on our Drupal 8 site to provide the Div Manager plugin on our CKEditor.
On of my content editors reports that, while it does allow her to add a wrapper ...
0
votes
1
answer
79
views
CKEditor doesn't work after updating
I've updated a drupal website to the latest 7.x version, and CKEditor stopped working. I had it originally getting //cdn.ckeditor.com/4.5.4/full-all, I've updated to //cdn.ckeditor.com/4.13.0/full but ...
0
votes
0
answers
89
views
Ckeditor pasted url links become hyperlinks
We have disabled 'Convert URLs into links'.
When you copy a url link from a browser url field like: drupal.org. Your clipboard contains the FQDN: https://www.drupal.org/. When you past this into ...
1
vote
1
answer
888
views
CKEditor add custom class to table
I want to add a class to a table inserted in CKEditor.
I have tried to add a custom style using the styles dropdown and add this line, table.my-custom-class|Table, but when clicking on the table the ...
0
votes
1
answer
67
views
Entity:media doesn't exist error when searching for url in "add link" in wysiwyg
When adding a link into a rich text field (wysiwyg) (see images bellow) and searching for a keyword the throbber icon keeps spinning and that's it.
I looked at the error logs and found the following, ...
5
votes
3
answers
3k
views
CKeditor stripping allowed style attribute
I've installed Colorbutton to my Drupal 8 site.
I have enabled the button for Full HTML and For Basic HTML
I have allowed the attribute <span style> in the Basic HTML allowed attributes area. ...
1
vote
0
answers
183
views
Prevent User from changing html in CKEditor [closed]
I wonder, if there is a way to prevent users from harming any html within my default html in a CKeditor textfield.
Yes I know this is not the Drupal way. Normally I would create a paragraph with its ...
1
vote
0
answers
67
views
Caption field with default value inside CKEditor
I activated the caption filter under Text format configuration to add description to media inserted via CKEditor
Is there a possibility to add a default value to this caption field whenever I add a ...
-3
votes
1
answer
129
views
Wysiwyg editor for webform 5
Is there a way to configure textarea fields in Webform 5 to use Wysiwyg editor ? preferably without coding and overlay capability (I mean something like https://www.jqueryscript.net/form/jQuery-Plugin-...
1
vote
0
answers
53
views
How do I put back de CKE image dialog box?
On Drupal 8, I can't find the image dialog box I used to have on Drupal 7.
I read this is a core issue, but my contributors are used to it and have a different level of expertise. This little dialog ...