Questions tagged [wysiwyg]
Use it for questions about the WYSIWYG editors made available in Drupal.
871
questions
1
vote
1
answer
135
views
How do you install or turn on CKEditor 5 paste from word plugin
According to a conversation with CKEditor this feature is included in the Drupal 10 version. They do not support it and point you to
Documentation for paste from Word
We cannot find where to turn ...
2
votes
1
answer
118
views
What is the approach for autocompletion of links in CKEditor5?
I have a new install of Drupal 10 with CKEditor 5 enabled, and I thought that CKEditor 5 now provided autocompletion of links, as used to be provided by the Linkit module. However, whenever I try to ...
0
votes
0
answers
20
views
How to prepopulate "caption" field in the wysiwyg from a media library field, field_image_caption
We were hoping to have unified captions maintained in the media library. I added a caption field to the "image" media type, "field_image_caption". That's great for places where ...
0
votes
2
answers
90
views
How to avoid converting URLs to links?
Using CKeditor5 in Drupal site... is there a way to avoid converting a specific URL to link in a specific page or paragraph? How?
Update: explanation
I have a paragraph where I give the bibtex to copy;...
0
votes
1
answer
406
views
CKeditor 5 generic block level styles
Is it possible to define generic block level styles in CKeditor5, instead of targeting a specific HTML tag?
E.g. I can define this in editor.full_html.twig
settings:
plugins:
ckeditor5_style:
...
0
votes
2
answers
323
views
Embedded images are not working in CKEditor 5
While migrating CKEditor 4 to 5, images added through entity embed ( E ) option in CKEditor 4 is not appearing after switching to CKEditor 5. Any idea how to make it work in CKEditor 5?
in CKEditor 4
...
1
vote
0
answers
55
views
Modify text for inserted link with CKEditor Linkit plugin
I would like to modify text that is being converted to a link within CKEditor, using the Linkit plugin. Eg. When linking to a Media Document, append the file type and size.
I am using ...
1
vote
0
answers
24
views
Use CSS preprocessor on CKEditor 4 contextmenu
I had to customize the look and feel of the CKEditor 4 context menu for our (internal use only) module. So, I copied core/assets/vendor/ckeditor/skins/moono-lisa/editor.css to my_module/css/...
0
votes
2
answers
464
views
How to enable Font Family, Font Size, Font Colour, and Justification?
I have installed Drupal 10.0.08. on my Windows 10 PC .It is running on XAMPP framework locally.
When I want to create content (either a Basic Page or an Article node) using CKeditor 5 on Drupal 10.0.8,...
0
votes
1
answer
701
views
How can we resize a Media Image inserted using Ckeditor5?
D9.5 - Ckeditor 1 (v5)
We have Media Images and are using Ckeditor's "Insert Media" button in the WYSIWYG but we cannot resize the images.
Is this possible with Media images?
0
votes
0
answers
31
views
How can I make <img> include the host?
We have a form with CKEditor where a user can compose a news item.
When set to 'basic HTML' input, the user can upload an image to insert as part of their input.
Later, I need to get this node body ...
0
votes
0
answers
59
views
How to modify the "href" attribute of some of the links of an html field type?
I'm using drupal 9.4.8 and I have a content type called "articles" which has a "body" field (which is a reference to a paragraph) and I'm making an algorithm to check all the ...
1
vote
0
answers
81
views
CKEditor 5 Right to Left Support
The CKEditor 5 docs claim that version 5 comes with Right-to-left editing out the box. While I am sure this is true, I am struggling to get it to work as such in Drupal 10's version.
I have enabled ...
0
votes
1
answer
49
views
Double click action in CKEditor 4? [closed]
I have D9.5 site with CKEditor 4 and media library module.
In CKEditor, when I double click on some existing media I get popup to select new media to replace clicked one. After selecting new visually ...
1
vote
1
answer
62
views
Are media entity Ajax calls cached?
In my Drupal 9 site with CKEditor 4 and I have created "media gallery" media type, which displays set of images (using slideshow module). So, when I click "insert media" CKEditor ...
2
votes
1
answer
255
views
Why is MethodNotAllowedException thrown when an image is uploaded with CKEditor 5?
After updating Drupal to 9.5.3, I had this warning: Deprecated modules found: CKEditor.
So I upgraded from CKEditor to CKEditor 5 following this documentation.
After some setup on text formats, I made ...
0
votes
1
answer
188
views
Inserting <span> tags into plain text fields
I've been given a content type with content already populated.
There are a number of headings/title fields in the content type and I have been asked to style a sub-section of those fields.
ie:
<h1&...
2
votes
1
answer
816
views
Why does this custom CKEditor plugin produce the toolbarview-item-unavailable error?
I have 2 modules in active development with the purpose of learning how to develop custom plugins for the Ckeditor5 wysiwyg.
On both modules, I am stuck on the following problem. The error pasted ...
4
votes
3
answers
5k
views
How can I change allowed tags in CKEditor 5?
How do I add <i> in CKeditor 5 without hacking a core module?
In Text formats and editor, for the allowed HTML tags, the following text is shown-
With CKEditor 5 this is a read-only field. The ...
0
votes
0
answers
187
views
How can I to make the CKEditor 5 balloon editor inline editor work?
Drupal 10 comes with CKEditor 5, which allows for inline editing, including a balloon editor.
It doesn't seem there is a setting in Drupal 10 for that yet.
How can I activate the balloon editor?
0
votes
1
answer
213
views
Add js library to custom ckeditor4 plugin
How can an external JS library be integrated into Drupal for use within a custom Ckeditor4 plugin?
My custom plugin needs to set a javascript cookie each time I click on the plugin icon and unset when ...
4
votes
1
answer
1k
views
Does CKEditor5 have an embed button like CKEditor4?
With CKEditor4 I was able to configure the editor to have embed buttons for entities (Webform, Taxonomy, or Node) like this using through Configurations >> Content Authoring >> Text editor ...
0
votes
1
answer
16
views
Possible to fallback to a simple text format
We have to Textformats for the WYSIWYG editor:
full html (intended for admins with html knowledge)
simple html (for the non-tech editors)
Both can edit the node
However, if the admin save a field ...
0
votes
1
answer
197
views
How do I load the Bootstrap CSS into a CKEditor template?
Just how we add custom theme style, I want to add Bootstrap CSS. Is there a way to do it?
/**
* Implements hook_ckeditor_css_alter().
*/
function mymodule_ckeditor_css_alter(array &$css, Editor $...
0
votes
1
answer
118
views
How do I set the custom Gutenberg font size?
Mythemename.gutenberg.yml allows setting custom font size, but it doesn't work on Drupal 9. (It works on my old Drupal 8 site.)
Basing on Creating custom font size presets in a Theme, custom font ...
2
votes
2
answers
563
views
CKEditor 4 style to add a class to a paragraph instead of replacing existing classes
Certain rich text contains the following HTML:
<p class="indent">paragraph text</p>
in Text formats and editors for CKEditor, I have added the following line to the styles ...
0
votes
0
answers
986
views
Add target _blank on ckeditor5
I'm using the experimental ckeditor5 editor on my drupal 9 project.
I have the need to allow the editor to choose whether to open a link in a new tab (target: _blank) or in the same tab.
Usually there ...
1
vote
1
answer
322
views
How to add the padding and margin options for Gutenberg?
I found the font size and color setting using your_theme.gutenberg.yml. Is there a similar setting where I can enable the padding and margin options? If not, what's the right way to add the padding ...
1
vote
1
answer
301
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
291
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
78
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
1
answer
105
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
169
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
189
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
53
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
133
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
3
answers
771
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
69
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
249
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 ...
1
vote
0
answers
42
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
1
answer
211
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 ...
1
vote
0
answers
219
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
1
answer
113
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
134
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
87
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
1k
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
290
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
772
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
3
answers
1k
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
48
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 ...