Questions tagged [wysiwyg]

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

Filter by
Sorted by
Tagged with
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
5answers
13k views

How can I add the full HTML format, and attach CKEditor to it?

I have 2 Drupal sites running on Drupal 7. How can I add the full HTML format, and attach CKEditor to it?
0
votes
1answer
434 views

do not optimize/remove html

I would like to have a page with some html content in it that CK Editor does not seem to support, in particular: I want to have a little <form tag with a couple of <input fields. I can enter it ...
33
votes
19answers
40k views

How to hide Input Format Options and help text under a textarea?

How to hide Input Format Options and help text under a textarea when adding|editing a node?
16
votes
4answers
21k views

CKEDitor removes class names, even with the exception in config

CKEditor seems to be stripping out class names when I toggle between HTML view and Rich Text view. As per many suggestions across the web I have added the following to the config.js file: config....
3
votes
2answers
4k views

Drupal 8 CKeditor behaves LTR in an RTL site

I've installed Drupal 8.0.2 in a standard installation process and in English. I later changed The site's default language to Hebrew (Which is an RTL language) and my content type is now setted to ...
3
votes
1answer
2k views

Installing extra/additional plugins for standalone CKEditor module library

I have the CKeditor plugin installed by itself (i.e. not using WYSIWYG module.) Then, it uses a CKEditor library located in sites/all/libraries/ckeditor. This works fine. I'd like to add more plugins ...
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 ...
4
votes
5answers
25k views

CKeditor adds extra <p> tags

CKeditor adds many <p>&nbsp</p> tags for all new lines when editing as HTML source. I found a discussion: http://drupal.org/node/669114 But I don't understand, how to fix it. If ...
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?
9
votes
3answers
17k views

How to set target="_blank" for links in CKEditor

I use CKEditor in Drupal 8. I want that every link will open in a new tab of browser. I want that the code look like this <a href="#" target="_blank">my link</a> But if I use the ...
8
votes
2answers
3k views

Is there advanced configuration for CKEditor in Drupal 8?

In Drupal 7 I was able to add config rules to CKEditor in the admin (like config.allowedContent = true; for example). I can't find this option in Drupal 8. Is it possible to do something similar?
4
votes
5answers
9k views

How to get teaser break to work with WYSIWYG + CKEDITOR?

I have Drupal 7.7 + WYSIWYG 7.x-2.1 + CKEDITOR 3.6.1 installed. My goal is to be able to insert a teaser break into my blog posts (blog post content type - body field), in order to specify what goes ...
3
votes
1answer
8k views

CKEditor buttons not showing

I'm using Drupal CKEditor module 7.x-1.13 and CKEditor 4.3.2. Everything is installed and appears to work fine... except that there are some buttons that don't appear despite being configured to do so,...
0
votes
1answer
2k views

Automatically add class to <ul> to WYSIWYG

Is it possible to automatically add a class to each <ul> element added to the CKEditor WYSIWYG? In my project, I decided to not style ul > li in order to not have to rewrite CSS for each ul ...
3
votes
0answers
902 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
2answers
9k views

Ckeditor toolbar not entirely showing up

I have just moved my site from local machine to production, the wysiwyg editor based on ckeditor no longer show the complete toolbar. I have a minimal list of element. Can someone help, am trying ...
1
vote
1answer
6k views

How to remove the status bar from CKeditor?

It seems that the module CKeditor doesn't offer in the UI the option to remove the status bar which includes the HTML path (eg: body p strong) and the re-size button.
-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 ...
19
votes
1answer
8k views

Saving a field of type 'text_format' as a system setting variable

I'm attempting to give my content editors the ability to change a variable for a custom module. This variable can have html. I don't want to require them to have any knowledge of HTML, so I want to ...
10
votes
3answers
7k views

WYSIWYG CKEditor config.js not being used?

I've installed and configured the WYSIWYG module (latest dev) to use CKEditor, and I have downloaded the latest version of CKEditor (latest full release) to sites/all/libraries. I'm able to use the ...
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 ...
6
votes
2answers
4k views

Custom button for CKEditor not showing up in node creation page

I want to add a simple custom button to CKEditor in Drupal 8. So far I followed the Instructions here and here, and my custom button is showing up on the configuration page under Configuration > ...
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'...
1
vote
2answers
4k views

CKEditor custom configuration (implemented using WYSIWYG module)

How can I set some custom configurations for the CKeditor module? I want to set spell check SCAYT on by default, and a few other things like that. Ideally, I would like to create my own custom config ...
9
votes
5answers
6k views

Disabling CKEditor in comments

Does anyone know of a way to force plain text mode in comments for all roles? Edit: is it in any way possible to do so through CSS? Thanks!
8
votes
5answers
17k views

How to stop CKEditor 3.6.3.7474 from stripping <script> tags

With Full HTML enabled and related filters off, CKEditor will strip any <script> tags from content it is editing. The editors who create content for this particular site need to be able to ...
6
votes
6answers
8k views

How do I modify the "Formats" dropdown in CKEditor

The CKEditor in Drupal 8 has a Formats toolbar button containing different text formats: "Heading 1", "Heading 2" etc. How can I add and remove items from this list?
2
votes
0answers
288 views

How to integrate ckeditor plugin with WYSIWYG module

I want to use http://ckeditor.com/demo#table-resizer addon for my drupal site which uses WYSIWYG drupal module and "CKEditor" as its editor. I have tried using hook_wysiwyg_plugin() hook but I am not ...
9
votes
6answers
30k views

Prevent WYSIWYG+CKEditor from stripping html classes

I'm using WYSIWYG editor with CKEditor. I'm finding that when adding custom classes to my elements from the "source" view, CKEditor strips those classes when switching out of the source view. When ...
7
votes
2answers
7k views

Removing the Text Format selection

Every textarea gives you an option to use either Filtered, Full, or Plain Text. Is there a way to remove or hide it so the layout becomes more streamlined? I'm using CKEditor if it means anything.
6
votes
6answers
15k views

Use CKEditor for textareas in custom form

I'm using the CKEditor module, and I would like to have the CKEditor in my custom textarea. I tried hard but it just doesn't work... This some of the code I tried: $form['body'] = array ( ...
6
votes
3answers
7k views

How do I turn off full html in comments only in drupal 7

Okay, I have set all content editing for admins on full html in drupal 7. I have also enabled wysiwyg and ckeditor. All is good, except I just want plain text and no ckeditor for the comments sections ...
5
votes
7answers
11k views

CKEditor is missing when editing a page, but works fine when creating a new page

On our drupal 7 site, we have CKEditor installed. It works fine when creating new content, but it doesn't activate properly when you go to edit the same page later. It acts like there is no editor ...
4
votes
3answers
3k views

How to set width to Media entity image in CKEditor

I have installed Media entity image Module with Lightning Distribution. I can embed image through CKEditor. But how can I select image-styles for Image witch has embed. Embedded code in CKEditor <...
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="...
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='...
3
votes
2answers
2k views

CKeditor stripping allowed style attribute

I've installed Colorbutton to my Drupal 8 site. I have enabled the button for Full HTML and For Basic HTML I have allowed the attribute <span style> in the Basic HTML allowed attributes area. ...
3
votes
5answers
5k views

How to enable WYSIWYG in a text field summary?

I have a body field (Text field with summary) with WYSIWYG CKeditor enabled. However, the "summary" part of the field lacks a WYSIWYG editor. How can I enable it?
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?
1
vote
1answer
158 views

Having my own theme for creating and editing Nodes: No WYSIWYG Editor

I disabled the option "Use the administration theme when editing or creating content" so I see everything in the default theme. But now I got a problem: The JS Drupal object is on the bottom of the ...
1
vote
2answers
13k views

Changing Font Options in CKEditor

I've tried a few different methods to change the options listed in the "font" drop-down in CKEditor, to no avail. First off, I went to Config > CKEditor > Profiles > edit each profile > Advanced ...
0
votes
2answers
1k views

ckeditor issue while ajax submit

i m using ckeditor in a form that submits through ajax. when the submit is clicked and the submission is in progress my ckeditor converts into a plain text editor and all the controls are gone, as ...
6
votes
2answers
12k views

How to add CKeditor Templates

Using CKeditor module I am trying to add a new template. I have modified default.js in \sites\all\modules\ckeditor\ckeditor\plugins\templates\templates\default.js By adding a new entry, however ...
5
votes
2answers
3k views

Media with WYSIWYG not converting media tags to markup

I just installed the Media module v 7.x-2.0-alpha3 along with WYSIWYG, CKEditor, and Image Resize Filter. (The site has many other modules active.) The site also uses Display Suite, and its view ...
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 ...
2
votes
1answer
854 views

Full Html Text format (and wysiwyg) show only for administrator role

I use Wysiwyg module with CKeditor since months and all worked well. Wysiwyg module is linekd only wit my input-format "Full html" and this is granted to use to my role "Editor". it worked very good. ...
2
votes
4answers
1k views

Why does the Wysiwyg module and Ckeditor library not show the CKEditor when editing a node?

I installed latest version of the WYSIWYG module (dev version) and also the latest CKEditor library. This module can find the library, I selected the ckeditor for text format "Full html" only. But ...
2
votes
2answers
3k views

How do I prevent CKEditor 4 from stripping Google AdSense asynchronous tags?

For whatever reason, CKEditor 4 is stripping Google AdSense asynchronous tags from my Full HTML text format. What starts as this (placeholders substituted for IDs): <script async src="//pagead2....
1
vote
1answer
950 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 ...