Skip to main content

Questions tagged [wysiwyg]

Use it for questions about the WYSIWYG editors made available in Drupal.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Customize editor_advanced_link module

I have installed the editor_advanced_link module with Drupal 10. Is there a way to always enable "Open in new window" by default? It should then look like this when the window opens: To ...
Vman's user avatar
  • 1
-1 votes
0 answers
23 views

Example for simple CkEditor Plugin for Drupal 10 [duplicate]

does anyone know, how I can find an example for a simple CkEditor button plugin? I tried to adapt something from modules and used Bing Copilot, but I do get errors and there might be a better approach....
jepster's user avatar
  • 969
0 votes
0 answers
16 views

Find and Replace in CKEditor 5 Plugin Pack is loading on a dropdown instead of dialog

I am using CKEditor 5 Plugin Pack V1.2.1 on a Drupal 10 website. Although stated in the documentation, Find and Replace opens in a dropdown. I have tried to disable Claro, use another theme but no ...
Alireza Tayari's user avatar
3 votes
0 answers
87 views

How can CKEditor 5 apply a class on link even when its content is an image

The problem: how to add an option to the CKEditor 5 which can add a custom css style class to a link, even if the content of the link is an image with any alignment? And, of course, preserve the ...
Tom's user avatar
  • 295
0 votes
0 answers
88 views

CKEditor5 pages not saving when attempting to use a relative link to file in body

I'm not sure where to look to troubleshoot this - any advice appreciated. Drupal 10 w/CKEditor5 as the text editor for the body field on basic pages. Absolute links linked within the body field save ...
NewtoThis's user avatar
0 votes
0 answers
39 views

How to automatically add a class to paragraph elements in ckeditor5?

When a paragraph is added to the wysiwyg, I want ckeditor to automatically add a class to it (dynamically in the wysiwyg), such that if I click "source" after the wysiwyg adds a new ...
John's user avatar
  • 287
0 votes
0 answers
68 views

How do I add a class to HTML tags in CKEditor 5?

In Drupal 7, I could add classes for <img> and <div> tags in CKEditor 4. I can’t find a comparable feature in CKEditor 5. How can I add classes to these tags using CKEditor 5?
Mehrdad201's user avatar
  • 1,322
1 vote
0 answers
90 views

Does anyone have suggestions or recommendations on how to integrate CKEditor 5 Full page HTML plugin successfully into a Drupal website?

I am exploring ways to implement the Full Page HTML feature of CKEditor 5 in Drupal. Does anyone have suggestions or recommendations on how to integrate this feature successfully into a Drupal website?...
aiqntsrgulla's user avatar
0 votes
0 answers
77 views

How to wrap CKEditor 5 editor in a custom div?

Migration from CKEditor 4 page, under the BodyClass section, states I can wrap the editor in my own div. "Simply wrap the editor with a <div class="...">", but, how? In ...
John's user avatar
  • 287
3 votes
2 answers
450 views

How can I modify CKEditor 5's CSS variables?

Although Drupal is designed to be styled using css files and configuration in the *.libraries.yml files, the CKEditor 5 module defines some styles in a Java Script file which: Is included at the end ...
Tom's user avatar
  • 295
0 votes
1 answer
31 views

IMCE button in the URL tool

Months ago, I somehow enabled the IMCE button to appear when adding an URL using CKEditor 5 on Drupal 9. The problem is that I totally forgot how I enabled that. I already checked CKEditor5's ...
julianx2rl's user avatar
0 votes
0 answers
55 views

Web folder gets deleted when uploading a large image in CKeditor 5

I'm getting the strangest and most annoying behaviour when trying to upload an image bigger than the php upload_max_filesize setting: it fails, but also completely deletes the web directory (the ...
nstCactus's user avatar
  • 162
0 votes
1 answer
34 views

how to change ckeditor4 classses for alignment?

As you know ckeditor4 has alignment buttons. when you press on each button, it adds a default class. rteleft for left, rteright for right, rtecenter for center and rtejustify for justify alignment. I ...
Mehrdad201's user avatar
  • 1,322
0 votes
1 answer
161 views

Trying to display my media field image in WYSIWYG via twig

So I have several images that need to be displayed under a certain image style. I basically made a custom media display view mode, selected an image in the WYSIWYG for a particular page using this ...
yogurtexpress's user avatar
2 votes
2 answers
480 views

How to hide CKEditor5 toolbar plugin based on user permissions?

I am using Drupal 10, CKEditor5, and a text format that has a good number of options in the toolbar including the source editing plugin. I have a custom module that defines a custom permission that I ...
Jordan's user avatar
  • 49
1 vote
1 answer
1k 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 ...
FolioGuru's user avatar
2 votes
1 answer
363 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 ...
Monkeybrain's user avatar
0 votes
0 answers
41 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 ...
Patrick Man's user avatar
0 votes
2 answers
208 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;...
Andrés Chandía's user avatar
0 votes
1 answer
757 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: ...
Hudri's user avatar
  • 5,109
0 votes
2 answers
714 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 ...
pvh's user avatar
  • 1
1 vote
0 answers
99 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 ...
Wayne Weibel's user avatar
1 vote
0 answers
33 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/...
Francesco Marchetti-Stasi's user avatar
0 votes
2 answers
1k 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,...
Rahul.In's user avatar
0 votes
1 answer
1k 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?
quantumized's user avatar
  • 1,249
0 votes
0 answers
63 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 ...
LeJuanChis's user avatar
1 vote
0 answers
161 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 ...
Jimmyb_1991's user avatar
0 votes
1 answer
67 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 ...
MilanG's user avatar
  • 559
1 vote
1 answer
99 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 ...
MilanG's user avatar
  • 559
2 votes
1 answer
407 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 ...
Diatherm Condole's user avatar
0 votes
1 answer
379 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&...
tanbog's user avatar
  • 1,283
2 votes
1 answer
1k 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 ...
sisko's user avatar
  • 1,730
4 votes
3 answers
9k 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 ...
Scott's user avatar
  • 57
0 votes
0 answers
258 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?
Yuri's user avatar
  • 618
0 votes
1 answer
293 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 ...
sisko's user avatar
  • 1,730
4 votes
1 answer
2k 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 ...
Vishal Kumar Sahu's user avatar
0 votes
1 answer
31 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 ...
Andreas's user avatar
  • 412
0 votes
1 answer
257 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 $...
user7167081's user avatar
0 votes
1 answer
177 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 ...
CocoSkin's user avatar
  • 891
2 votes
2 answers
758 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 ...
Marshall Morrise's user avatar
0 votes
2 answers
2k 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 ...
Sanci's user avatar
  • 103
1 vote
1 answer
430 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 ...
CocoSkin's user avatar
  • 891
1 vote
1 answer
551 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 ...
Maine Mike's user avatar
1 vote
1 answer
375 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 ...
Amy's user avatar
  • 5,738
0 votes
0 answers
88 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 ...
pmagunia's user avatar
  • 697
0 votes
1 answer
153 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 ...
MastaP's user avatar
  • 152
1 vote
0 answers
187 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 ...
Sarah C's user avatar
  • 490
1 vote
0 answers
229 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 ...
Joost's user avatar
  • 1,378
0 votes
1 answer
64 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 ...
new_to_drupal_librarian's user avatar
1 vote
1 answer
211 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 ...
newtodru's user avatar

1
2 3 4 5
18