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
21 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
43 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 votes
0 answers
43 views

media embed button missing in ckeditor5

The media embed button is missing in drupal10 with ckeditor5. https://ckeditor.com/docs/ckeditor5/latest/features/media-embed.html Is it a misconfiguration ? or is it yet not available ? will it be ...
  • 3,109
1 vote
0 answers
24 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
24 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 ...
  • 485
1 vote
1 answer
42 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 ...
  • 485
1 vote
0 answers
34 views

Why does a MethodNotAllowedException throw when uploading an image 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
27 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&...
  • 1,221
0 votes
0 answers
142 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 ...
  • 1,730
3 votes
2 answers
592 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 ...
  • 47
0 votes
0 answers
68 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?
  • 578
0 votes
1 answer
64 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 ...
  • 1,730
3 votes
1 answer
296 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
14 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 ...
  • 312
0 votes
1 answer
83 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
78 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 ...
  • 859
2 votes
2 answers
245 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
314 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 ...
  • 103
1 vote
1 answer
190 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 ...
  • 859
1 vote
1 answer
144 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
153 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 ...
  • 5,442
0 votes
0 answers
43 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 ...
  • 649
0 votes
0 answers
52 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=&...
  • 2,765
0 votes
1 answer
56 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 ...
  • 137
1 vote
0 answers
130 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 ...
  • 470
1 vote
0 answers
131 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 ...
  • 1,058
0 votes
1 answer
34 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
48 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
2 answers
492 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
57 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
177 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 ...
  • 21.4k
1 vote
0 answers
36 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
137 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
143 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
59 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
98 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,765
2 votes
0 answers
70 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 ...
  • 859
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 ...
  • 81
0 votes
1 answer
251 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
649 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 ...
  • 29
2 votes
3 answers
871 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 ...
  • 431
0 votes
0 answers
34 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
59 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 ...
  • 485
1 vote
1 answer
175 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 ...
  • 108
1 vote
1 answer
143 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, ...
  • 3,580
2 votes
1 answer
396 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.
  • 3,109
0 votes
1 answer
370 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
78 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 ...
  • 568
0 votes
2 answers
532 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
60 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 ...
  • 191

1
2 3 4 5
18