Questions tagged [wysiwyg]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
1k views

Easiest way to add popup dialog with snippet of html/text using a wysiwyg editor?

My client isn't too technical and cannot code, but she wants a popup dialog when the user clicks on a link to show a snippet of html or text. What solutions are there for the end user to be able to ...
0
votes
0answers
177 views

Show a field on form only when body field has been edited

On my nodes, users won't need to make a description of their changes unless they modify the body field. Therefore I would like to hide the revision log field on the form unless the body field (the ...
2
votes
1answer
1k views

How to use Font-your-face fonts with CKEditor?

I am using some Google fonts via the Font-your-face module on my D7 website as well as CKEditor for content editing. To achieve full wysiwyg effect I would like to display the text in editor with ...
0
votes
1answer
21 views

Not all the buttons are displayed

I installed CKEditor plugin ver. 1.16. In configuration page for editor appearance I selected "Full": But when I open "Add content" page I see the different picture: When I changed the appearance ...
1
vote
2answers
461 views

Cannot find /libraries for installing ckeditor module

I'm trying to install the CKEditor Codesnippet module. I've downloaded the source but I don't know how to install it. In the module page istructions are: Download the plugin from http://ckeditor....
1
vote
1answer
82 views

Quick edit destroys CKEditor formatting... any way to avoid it?

Quick edit doesn't bring up CKEditor buttons, and clears immediately all previous formatting (like numbered lists), which can lead to serious data lost, in my case. Is there any patch to have ...
1
vote
1answer
359 views

How to set up Media module with image editor?

I have installed Media module (7.x-2.0-beta2), but I can't find the module or setting for editing images that is in the video Drupal 7: Media Upload with Image Editing. I want to set up the Media ...
-2
votes
3answers
1k views

Why do Font size and font color button makes CKEditor disappear when I move it to the active toolbar?

When I move the Font size and color buttons from available to active toolbar CKEditor disappear - why? Note: I did not get an answer for this question - but I managed to fix the problem halfway by ...
4
votes
2answers
2k views

How to make CKeditor format code indenting elements and adding line breaks?

Using CKEditor in Drupal 7, I could configure CKEditor to format the code adding line breaks and indenting the HTML code automatically. For example, pasting this in the source code: <div class="...
1
vote
1answer
25 views

Avoid control-B is "eaten" [closed]

I am a heavy EMACS user. On the Mac I get EMACS keybindings in most text fields, and on most websites. However, if I am on a drupal website editing an HTML field, control-b toggles bold. Command-B ...
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 ...
1
vote
0answers
79 views

How can I add a (very) simple "Insert dialog" link?

I'm currently developing a social networking website and need a clean and simple editor for user content creation. I've choosen CKEditor (https://www.drupal.org/project/ckeditor) as it is integrated ...
1
vote
2answers
1k views

Ckeditor not applying to textarea

I have a textarea field in a custom module form , I guess there is ckeditor library by default in core in d8 . I tried the following : $form['fieldset']['email_template'] = array( '#type' => '...
1
vote
1answer
702 views

Allow HTML style attribute for filtred HTML

I'm using the Wysiwyg module with CKEditor 3.6.6.2.7696. The HTML attributes is disallowed in HTML text format, so I can't use font-size and text-align. Any solution please?
0
votes
0answers
359 views

All WYSIWYG Editors do not show up on site

I have installed the CKEditor module, but my editing block doesn't show up properly: I've followed all suggestions listed here: the WYSIWYG editor doesn't show up, drupal 7 In previous websites ...
0
votes
1answer
2k views

How to add any plugin to ckeditor manually? [duplicate]

I'm trying to add a new plugin ckwebspeech in ckeditor module. Here is the plugin which I want to add. So, that the final editor will look like mentioned in screenshot. Is there any way to add this ...
0
votes
0answers
72 views

CKEditor: Change tag filtering from a list of 'allow' to list of 'dis-allow'

I have two CKedit text filter profiles -- Advanced Full HTML. The Advanced allows a restricted set of HTML tags and the Full filters no tags. I want to add a second profile that is allowed the ...
0
votes
1answer
641 views

Images uploaded with CKeditor disappear after cron run

When i upload images with CKeditor in a directory inline-images - they disappear after each cron run. Why is that happened? I had a look at db table file_managed it's status set to 0. What it might ...
1
vote
0answers
199 views

Extending CKEditor with multiple plugins

I want to include more features and plugins to the default CKEditor included in Drupal 8. I found an article explaining how to do so here https://www.linkedin.com/pulse/creation-extended-...
0
votes
1answer
469 views

Programmatically Set Default Text Editor

I have a customized module that requires tinyMCE as a library. After module installation, I still have to set my text editor in the image above. It was found in the admin/config/content/wysiwyg. How ...
0
votes
1answer
73 views

Is it possible to declare a Javascript library dependency at Hook.info? [closed]

Below is my module.info file: name = myid description = Creates an ID template, Inputs ID form, Prints an ID and View System Statistics . core = 7.x package = CSU ;Jquery Library dependencies[] = ...
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 ...
1
vote
1answer
400 views

How do I alter images being added via IMCE CKEditor plugin?

I just wanted to share my solution since I did not find any clue or different way of fixing the following problem: Formerly, you could add a default class/ alter attributes of newly inserted images (...
5
votes
5answers
7k views

How to configure CkEditor's styles dropdown?

I have made changes to the configuration of CKEditor for the basic_html rule set as follows: When I then try to use the editor, however, I get the following: I have tried clearing the cache multiple ...
4
votes
1answer
1k views

CKEditor and attributes

I wish to enforce a site-wide set of attributes to content produced via CKEditor. For example, if someone inserts a table, I want the class 'myclass' automatically added as follows: <table class='...
2
votes
0answers
177 views

Modify URLs generated by CKEditor Link for specific node type

How do you alter the URL generated by CKEditor Link, for a specific content type. For example I have book_section content type. If a content editor links to a node with type of book_section I want to ...
2
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 ...
1
vote
0answers
54 views

Using a WYSIWYG field in Fieldable Panels Panes

I'm using the Fieldable Panels Panes module to allow my users to create pre-styled panels and arrange them on the page using drop and drag. I've used a Drupal 7 site before where you could include a ...
-1
votes
2answers
3k views

Adding font-size and color buttons

I work with Drupal 8.1.3 and my WYSIWYG editor lacks font-size and color buttons. Is there a way to unlock these or should I install a total different editor (while trying to convince some in the ...
5
votes
4answers
3k views

How do I change the default height? [closed]

9 rows is just way too small by default. Is this a text-editor for ants?
1
vote
1answer
402 views

CKEditor Link a content with rule as a hypelink with title and url to a custom field

I would like to add a hyperlink entry in a blog which points to a internal content URL with different content type which needs to be display for authenticated users. 1.) The hyperlink should show the ...
0
votes
1answer
1k views

Edit CKEditor's config programmatically

I've created a Drupal 8 module that adds a custom plugin to the core's CKEditor. This plugin allows users to add tabbed content to their pages. The problem is that the plugin adds a class to the ...
2
votes
1answer
128 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
1answer
962 views

How can I correct a word on the CKEditor field?

When editing a text area in Drupal 8, right clicking a highlighted spelling error doesn't produce a context menu option to correct the misspelled word. How can I correct the word on the CKEditor field?...
1
vote
0answers
1k views

Margins around images

I have Drupal 8.1.2; the Breakpoint and Responsive Image modules are installed. When an image is inserted using CKEditor inline images there is no margin between the image and the text. I have ...
0
votes
0answers
310 views

IMCE with Amazon S3 loads images very very slow

I am using D7 with Amazon s3, imce, imce filefield module to upload images through CKEditor. And when I clicked on image upload button in CKEditor it is taking around 3-5 minutes to load the CKEditor ...
0
votes
1answer
119 views

Remove fields from dialog window

How can I remove fields from the CKEditor dialog window? In my case, I need to remove the "Caption" field from the "Table Properties" window. How can I do that?
1
vote
0answers
521 views

Enabling a custom richcombo plugin to CKEditor

I'm trying to enable my custom CKEditor plugin in Drupal, but the custom dropdown is never shown. I'm using CKEditor module. Here's what I did: I created a new folder in /ckeditor/plugins and saved ...
-1
votes
1answer
680 views

Pasting from google docs removes the styles [closed]

When I copy text from a google doc and paste it to the ckeditor using the paste from word button it removes all the styling (bold, italics, ...). How can I fix that? update Steps to reproduce : ...
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
0answers
194 views

wysiwyg module and imce missing upload button

I am attaching an image....i have wysiwyg module with cke library and also imce module and imce bridge module. When I click browse to upload images, i get a nonfunctioning screen....It does not work ...
1
vote
0answers
79 views

The Media module does not correctly render YouTube videos added with Media: YouTube

Trying to allow the user to embed YouTube videos from the Wysiwyg, CKEditor 3.6, Media: YouTube. This is the module config : Then I try to add a YouTube video by providing the URL link to the video ...
0
votes
1answer
178 views

Formatting is lost after publishing the content

I am using WYSIWYG with TinyMCE in my Drupal 7 website. I observed that the copied content looks similar in editor and even preview also looks nice. But all the formatting is lost after publishing the ...
1
vote
1answer
517 views

CKEditor removes HTML/CSS when switching to plain texteditor and back [duplicate]

My CKEditor seems to remove formatting in a table when I switch from plain text editor back to rich text editor even though the additional formattibn was added in the rich text editor - it seems to ...
1
vote
0answers
20 views

Linking to translated internal content in TinyMCE wysiwyg

What's the best way to allow editors to link to internal content using the TinyMCe wysiwyg editor in a way that provides the correct alias based on the end user language? For example, I would like ...
1
vote
0answers
638 views

Ckeditor removing line breaks

CKEditor was initially working correctly. Now it's removing all the line breaks and the font size and color changes in my text. The source code still shows , , , and tags (with closing tags), but ...
7
votes
5answers
5k views

Ckeditor strips <i> tags

CKeditor strips the <i> tags, and I can't find where in config.js I can put this code. CKEDITOR.dtd.$removeEmpty['i'] = false This is a solution for Drupal 7 and the CKEditor module.
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 ...
0
votes
0answers
69 views

CKEditor toolbar does not appear as configured

under /admin/config/content/ckeditor/edit/Full I have configured the CKEditor toolbar to appear in Full. However, when I edit my content in Full HTML, the toobar looks incomplete (see screenshot). ...
2
votes
1answer
107 views

How to allow for manual HTML & CSS changes?

I'm using CK Editor to insert a table into my content (Body field). I would like to set a background color, so I extended the style="width:100%" to be style="background-color: #FFEEE4; color: black;...

1
3 4
5
6 7
17