Questions tagged [wysiwyg]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
2k views

How to dynamically add options to <select> list in CKeditor dialog

I am building a CKEditor plugin for Drupal 8. Currently it adds a toolbar button which triggers a modal dialog containing a select list with a few options. I've hardcoded the options in plugin.js, and ...
3
votes
3answers
9k views

Implementing CKeditor's plugin

I need to add the Templates plugin into Drupal8 CKeditor. So far it is available on the editor configuration page, but not on a node edit page. The code: namespace Drupal\module_name\Plugin\...
3
votes
1answer
9k views

CKeditor removes iframes in editor after update to 6.x-1.14

Similar to this issue on the CKeditor project, CKeditor removes embedded iframes after I've updated the module. Though there is a solution in the first comment for Drupal 7, I can't find a solution ...
3
votes
2answers
5k views

How to set the path to images in ckeditor?

I have a recurrent problem I can't solve. when working in localhost I use ckeditor to upload images to the body field. These images are shown correctly. Then after, I upload the site to the remote ...
3
votes
1answer
3k views

CKeditor cannot find ckeditor.js

I am in the process of upgrading a Drupal install from 6 to 7. Drupal 6 uses the ckeditor module without any difficulties. As I upgraded to Drupal 7 and the latest version of ckeditor, the module no ...
3
votes
6answers
9k views

CKEditor simple image upload functionality

I'd like to have a simple, one-click, image upload functionality with CKEditor. I'm using D6 and CKEditor 3.6.1. I do not want a server file browsing functionality, only uploading images from the user'...
3
votes
2answers
3k views

Editor adds <p>&nbsp</p> on every enter

I've got a problem with CKEditor in Drupal 8. I've searched related questions like CKeditor adds extra <p> tags, but almost all questions are related to Drupal 7. So, my CKEditor automatically ...
3
votes
1answer
1k views

"Limit allowed HTML tags" filter is deleting Ckeditor table styles

I'm using the "Limit allowed HTML tags" filter in my text format and put this to the allowed tags: <th style> Anyway my table styling <th style="width: 60%;"> added in Ckeditor is ...
3
votes
2answers
3k views

CKEditor custom plugin to add richcombo select list

I am building a CKEditor plugin for Drupal 8. I've done plugins that show a button in the editor toolbar, but this one should render a select list. The list is not showing up in the configuration page ...
3
votes
1answer
913 views

How to prevent CKEditor trim plain text in source view

I'm using Drupal 8, In source view when I paste some plain text like this: Hello sir. <br /> Hello sir. And submit node form, without toggling back to rich-text mode, text above is removed. ...
3
votes
3answers
3k views

WYSIWYG and TinyMCE stripping out float: left

I've got the WYSIWYG module installed and the TinyMCE javascript library as well. I've created a text format "Rich Text" which is similar to Filtered HTML but I've added more allowed tags. I insert ...
3
votes
2answers
2k views

CKEditor configured MediaEmbed button doesn't appear in toolbar

I have updated my CKEditor profiles to display the MediaEmbed button. The profile is saved, but when editing content, the button doesn't appear in my toolbar. I'm using CKEditor 4.4, oEmbed plugin 1....
3
votes
1answer
718 views

Unable to link media in CKeditor

My setup is as follows: Drupal 7.34 Media 7.x-2.0-alpha3 CKEditor 4.4.6.08188c4 My problem is: When I add an image from the "library" via media browser in CKeditor and try and link it via the "link"...
3
votes
1answer
383 views

How do I allow editors to select a template with CkEditor? [closed]

I am using CkEeditor to edit the node body field. I want to add a Select template option in CkEditor.
3
votes
1answer
632 views

Image output when using scald module

I'm using the scald module for image management. It's working 99% as I'd want it to - but when used with WYSIWYG (ckeditor) I'm having an annoying issue. The images in this context need captions so I'...
3
votes
1answer
997 views

How to implement 'phonetic typing' for performing a language conversion of a field (using CKEditor)?

I am using CKEditor in a Drupal website. I am looking for a technique to convert (not translate) words from English to some other language (say Telugu), while typing those words. Below are 2 examples ...
3
votes
4answers
3k views

CKEditor: *During* WYSIWYG edit, how to show caption beneath image?

When editing a body field with image and caption, the caption does not display during editing. Once saved it is visible - when the content is viewed. Implementation-wise, I've added a caption field ...
3
votes
2answers
12k views

In Tinymce editor, how to set default font family style in select list?

I have TinyMCE editor configured and under font family select list, I am able to see 'styles' label as default when loading. But I want to see any font family as default. Suppose, Times new roman as ...
3
votes
1answer
1k views

Uploading images in a node with WYSIWYG and TinyMCE 3.4.3

I am trying to put images in a node with the WYSIWYG editor and TinyMCE 3.4.3. I uploaded an image, and with the editor I inserted the image in a node; the problem is that at first click the image ...
3
votes
0answers
3k views

How do I practically use the media library?

Now that Drupal 8.6 is released, I tried the experimental Media Library module. It works great, but it needs some additions. How can I use core Media Library with CKeditor? How can I fill custom ...
3
votes
1answer
5k views

How do I add extra/custom plugins in CKEditor?

I am copying the templates plugin http://ckeditor.com/addon/templates I put it in my D8 folder /core/asstes/vendor/ckeditor/plugins I do a 'drush cr' I do not see the templates plugin under ...
3
votes
0answers
901 views

How to get 'switch to plain text editor' to work?

I have designed a website on Drupal. It was working fine but now when I tried to update a link (by adding any name under any option) it does not show the rich text editor. Instead it shows the plain ...
3
votes
0answers
692 views

Fontawesome plugin ckeditor

Someone already tried to make the fontawesome plugin (http://ckeditor.com/addon/fontawesome) working with the ckeditor module on Drupal 7 ? I followed the whole installation (modified the ckeditor....
3
votes
1answer
2k views

How to customize CKEditor format configuration

I'm using Drupal 7 with CKEditor module and I would like to delete some formats in the dropdown box that is currently labeled "Format". So I modified the config file which is site/all/modules/ckeditor/...
3
votes
2answers
1k views

How to selectively disable CKEditor on specific pages?

On a site I am developing, I have installed and enabled CKEditor version 7.x-1.13. On two of the pages, I need to completely disable the editor from being active when accessing the admin to edit the ...
3
votes
1answer
1k views

Change height of CKEditor (per profile) without using WYSIWYG Module

Problem How can I change the height of the CKEditor window without using the solution outlined here which requires the WYSIWYG module. I can't spot where the height is defined in the CK module. ...
3
votes
2answers
1k views

How to add "browse" button in image in CKE Editor?

I wanted to put "browse" button in image button iframe(pop up). But I am unable to put it. How can I change the default behaviour and customize pop up screen in cke editor buttons ? Thank you...
3
votes
1answer
914 views

How do I handle smart quotes and curly apostrophes?

I'm building a new Drupal site, and the content authors and editors ared dyed-in-the-wool Microsoft Word users. I've got WYSIWYG set up to force all pasting to be treated as "Paste from Word&...
3
votes
1answer
2k views

How do I include custom CSS files in the styles dropdown?

I am trying to include custom css file to ckeditor. It doesn't show css file in styles drop-down list. I have included this two lines of code into; /drupal/sites/all/modules/ckeditor/ckeditor....
3
votes
3answers
3k views

Remove 'Switch to plain text editor' in CKEdtior

Where do I disable the switch to plain text editor link from the CKEditor. I checked the settings and I don't find anything that support this. I tried to disable it with display:none; through CSS ...
2
votes
10answers
8k views

WYSIWYG module w/CKEditor not working drupal 7

I am unable to get WYSIWYG working with my Drupal 7 installation. I watched a screencast to ensure I installed the module and library correctly, and everything appears to be properly installed. My ...
2
votes
4answers
610 views

Need a WYSIWYG plugin

Straight to the point, I need a WYSIWYG module for Drupal 6; here are the requirements: Easy to change the toolbar button Able to add custom style Able to upload image and put into content Able to ...
2
votes
6answers
770 views

How to hide the 'Format Options' / 'Help Text' Guideliness from the bottom of comments textarea?

How can I remove or hide Format Options / Guideliness under the comments textarea in my theme?
2
votes
2answers
4k views

How do I make an internal link with CKEditor?

I am using Drupal 8. Using the standard WYSIWYG editor, when I click on the link button, I only get the option to add a url. I would have thought there would be some capabilities to look up existing ...
2
votes
3answers
297 views

How can I configure the backend to get a comfortable image insert functionality with captions?

Since Drupal offers many different approaches to inserting images, I am a bit lost. I am looking for a configuration that allows editors to comfortably insert images with captions. My requirements are:...
2
votes
4answers
8k views

CKEditor + IMCE file uploader. What am I missing?

I've got CKEditor and IMCE modules installed and enabled. I've got an "Insert image" link at the bottom of the "body" text area. However, I can't seem to get the wysiwyg editor to display. What am I ...
2
votes
1answer
130 views

how to managed form '#type' => 'text_format' toolbar

I have a simple form: $form['module']['name'] = array( '#type' => 'text_format', '#title' => t('Name'), '#description' => $this->t('Some notes'), '#...
2
votes
2answers
418 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 ...
2
votes
3answers
2k views

How to change text format of summary/trimmed field?

Is there a straightforward way to change the summary/trimmed text to "full html" in Drupal 8? There are workarounds such as creating separate body fields and using them as the summary but I am ...
2
votes
1answer
7k views

Creating and Linking anchors using CKEditor [closed]

I am using CKEditor in my drupal 7 website. I am designed a new content type, in which I am writing about project activities in the following manner. (1) Project A [anchor] This project ...
2
votes
1answer
4k views

Custom ckeditor.styles.js possible to specify for any/all elements?

In the ckeditor.styles.js can you leave the element blank or specify multiple elements in a single line? Ex. if the class .red could apply to any element, do I actually have to write out a line for ...
2
votes
1answer
4k views

Installing TinyMCE plugins on Drupal 7 with the WYSIWYG module

I using Drupal 7 and the WYSIWYG module and the TinyMCE (3.4.2) plugin. I want to install a plugin for TinyMCE. I placed the plugin folder in the right directory. sites/all/libraries/tinymce/...
2
votes
3answers
2k views

How to prevent CKEditor from removing content and tags written in source?

I'd like to be able to use things such as the tag for purposes of using font awesome icons, but CKEditor strips tags like this. If I place when in 'source' mode in ckeditor it gets removed as soon ...
2
votes
1answer
370 views

Teaser is missing CKEditor when uncollapsed

I have text with summary fields on my entity and for some reason the ckeditor is present only on the body, not on the teaser if I uncollpse it. What could be the issue?
2
votes
1answer
3k views

Allow empty tags

I need help to allow CKEditor empty tags. I know that I need to add something like CKEDITOR.dtd.$removeEmpty['i'] = false in a config file, but I can't find this file in Drupal 8.0.0 installation. I ...
2
votes
2answers
1k views

How to configure the toolbar in CKEditor?

I've installed CKEditor in my drupal instance and all seems to work well until I realized, I can't change the text size (missing drop down). I went to admin/config/content/ckeditor and selected and ...
2
votes
1answer
154 views

WYSIWYG Editor questions

We've had a custom theme made out of two themes combined basically a news and a video content section--I've installed WYSIWYG and TinyMCE. The weird thing is that the rich text editor only shows up ...
2
votes
1answer
573 views

What WYSIWYG editor allows me to select styles from a dropdown 'out the box'?

I have installed the WYSIWYG module in Drupal 7 and have tried it with CKEditor and TinyMCE. I want users to pick styles from the template css when editing, but here appears to be a bug with the ...
2
votes
2answers
354 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 ...
2
votes
1answer
83 views

CKeditor doesn't format the body value

I am building a website in Hindi language. I was given a Database containing rows of title and body. I created a node for each row using this code : $query = db_select('hindi', 'n') ->fields(...

1 2
3
4 5
17