Questions tagged [wysiwyg]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
286 views

Is it possible to use public:// for inline images (in text) to protect against changes in config?

There's a similar question here, but it concerns D6 or D7. It seems to me the suggested solution won't work in Drupal 8 for two reasons: It's very unadvisable to attack the database directly with SQL,...
1 vote
1 answer
1k views

CKEditor Font Size and Family buttons does not appear

I tried to install CKEditor Font Size and Family on my fresh Drupal 8 install, but both buttons does not seem to show up. Plugin is placed in /libraries CKEditor and CKEditor Font modules are both ...
  • 234
0 votes
1 answer
2k views

Load Javascript code within iframe of Article edit

I am trying to enhance a module CKEditor Responsive Plugin. I am basically looking to make the adjacent divs of equal heights by running a javascript code, this is the code: /* From: https://codepen....
0 votes
1 answer
73 views

in ckeditor plugin, why isn't my getConfig returned array affecting editor?

I'm including the wordcount plugin to CKEditor in D8. I'm including some configuration (maxWordCount) through the configurable interface. The issue I'm having is that no matter what I return from ...
1 vote
0 answers
379 views

How to enable CkEditor for "Global: Custom text" in views fields?

How can i easily enable CKEditor for "Global: Custom text" fields in views - Drupal 8? CKEditor is only visible in a global text fields in HEADER or FOOTER. I need to change text input format in "...
  • 169
1 vote
1 answer
648 views

How can I use CKEditor for teaser text on a long form text field?

In Drupal 8, the teaser text for a long form text field (specifically, text of type "long, formatted, with summary") does not have a CKEditor wrapper around it: How can CKEditor be added to this ...
  • 1,042
2 votes
1 answer
2k views

Enable CKeditor on Webform's textarea

I'm trying to create a contact form supporting HTML formatting with Webform and CKEditor. So I created a new webform with a single field of type Textarea and now I have a simple webform with the basic ...
1 vote
1 answer
322 views

Convert Media tags to markup failing again

Once again I am plagued by this. Embedding an image from the media library shows in the editor, but when you view the node on the front end you get this: [[{"fid":"851","view_mode":"default","fields":...
  • 133
0 votes
2 answers
2k views

Remove HTML element when pasting from Word

I am pasting a GDoc content using "paste from word" button on the ckeditor (4.5.4) and I want to remove the extra span with style associated with links in the text (so that it uses my theme css). Here ...
  • 251
1 vote
0 answers
489 views

Enable wysiwyg on textarea summary field [duplicate]

Anyone know how I can enable the WYSIWYG editor for the textarea summary field in D8? I have a "body" field on my news content type set to "Text (formatted, long, with summary)" but only the main ...
  • 1,042
1 vote
1 answer
1k views

CKEditor table td style not showing in frontend

I use CKEditor (WISYWYG editor) to edit text and HTML for my Drupal project. I want to edit an HTML table and try to horizontally align text in a table cell <td> to the right. My steps: select ...
  • 1,293
0 votes
1 answer
39 views

Import content to ckeditor correctly

I imported large number of articles from another CMS to Drupal 8. The content is in HTML and when i open a page i have html not interpreted. How do i tell Drupal/Ckeditor that the content is in HTML ...
  • 621
2 votes
1 answer
85 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(...
  • 3,864
0 votes
1 answer
42 views

Media library duplicating results view in ckeditor

After numerous problems on a certain website I tried a bare bones fresh install of drupal 7.5 on a subdomain with nothing but the medial library and its dependencies as well as all modules required to ...
  • 133
1 vote
2 answers
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
0 answers
185 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 ...
  • 1,101
2 votes
1 answer
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
1 answer
22 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,888
1 vote
2 answers
474 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....
  • 113
1 vote
1 answer
83 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
1 answer
371 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 ...
  • 51
-2 votes
3 answers
2k 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 ...
  • 39
4 votes
2 answers
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="...
  • 902
1 vote
1 answer
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 ...
  • 111
2 votes
3 answers
3k 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 ...
  • 5,180
1 vote
0 answers
84 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
2 answers
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' => '...
  • 2,220
1 vote
1 answer
892 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
0 answers
368 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
1 answer
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
0 answers
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 ...
  • 497
0 votes
1 answer
712 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
0 answers
203 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-...
  • 5,180
0 votes
1 answer
486 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 ...
user avatar
0 votes
1 answer
75 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[] = ...
user avatar
3 votes
1 answer
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 ...
  • 299
1 vote
1 answer
445 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 (...
  • 2,433
5 votes
5 answers
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 ...
  • 1,157
4 votes
1 answer
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='...
  • 1,157
2 votes
0 answers
180 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 ...
  • 302
3 votes
2 answers
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 ...
  • 299
1 vote
0 answers
57 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 ...
  • 11
-1 votes
2 answers
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 ...
user avatar
5 votes
4 answers
4k 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?
  • 204
1 vote
1 answer
408 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
1 answer
2k 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 ...
  • 104
2 votes
1 answer
133 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'), '#...
  • 635
2 votes
1 answer
1k 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?...
  • 26.4k
1 vote
0 answers
2k 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
0 answers
323 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 ...
  • 1,389

1
3 4
5
6 7
18