Questions tagged [wysiwyg]

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

Filter by
Sorted by
Tagged with
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?
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 ...
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....
12
votes
6answers
10k views

Attach WYSIWYG to Drupal Form

With a custom Drupal form, how can you attach WYSIWYG functionality to a textarea with the WYSIWYG module?
10
votes
3answers
6k views

How to load theme style(s) in CKEditor?

In Drupal 8, how can you have CKEditor load additional stylesheets when using a configured filter format? In Drupal 7, you could give the WYSIWYG module paths to CSS sheets to load, which made the ...
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 ...
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 ...
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 ...
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!
9
votes
5answers
13k views

Custom ckeditor.styles.js file with WYSIWYG module

I am trying to customize the "Font style" dropdown in CKeditor through the WYSIWYG module, but I see no way to specify a path for ckeditor.styles.js in the wysiwyg module's profile editor. Refer to ...
9
votes
5answers
20k views

Adding a Image Upload Button in CKEditor

I have installed CKEditor in Wysiwyg profiles. While publishing any node if i click on the image upload button it shows options to add images by a image link, but what is the way to add a dynamic ...
9
votes
3answers
2k views

How do you load extra javascript files required for wysiwyg api plugin on node/edit pages?

I'm building a plugin using the WYSIWYG API module for Drupal 7 that will add a button to the toolbar of supported editors. I'm using the hook_wysiwyg_plugin() hook to create a new button on editor ...
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 ...
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?
7
votes
7answers
13k views

How do I enable the WYSIWYG editor on fields?

I added couple of Text fields on a content type in Drupal; however, only the in-built "body" fields is WYSIWYG editor enabled. I am using FCKEditor as the WYSIWYG editor (installed under the Wysiwyg ...
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.
7
votes
4answers
7k views

CKEditor 4 library is not detected by Wysiwyg module

The Wysiwyg installation instructions tell me to Extract the archive and copy its contents into a new folder in the following location: sites/all/libraries/ckeditor So the actual library ...
7
votes
3answers
2k views

What is the difference between wysiwyg module + ckeditor and ckeditor module?

What is the difference between using the Wysiwyg module and the CKEditor - WYSIWYG HTML editor module? Are there benefits on using one over the other?
7
votes
2answers
7k views

How to Wrap the text in Source View of CKeditor

I am using CKeditor version 7.x-1.16 with Drupal 7.34. How can I force the text to wrap in source view of the editor. I don't want the horizontal scroll bar to appear. I managed to do that in WYSIWYG ...
7
votes
1answer
4k views

Insert images with Media

I am using Media and Wysiwyg with CKEditor to insert images in the post editing field, and for some reasons I keep getting this code instead of my images. Does anyone know how to fix it? [[ { ...
7
votes
2answers
10k views

Adding CSS classes to wysiwyg

I use wysiwyg with ckeditor, and I was wondering how I would add css styles so a user could, for instance, float images to the left or make other similar changes...? Thanks!
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.
7
votes
2answers
2k views

managed links in Wysiwyg?

I am looking for a systematic way to deal with links in Drupal, like there is for images. For images, you add image field to content type, then install "Insert" module and you can use Wysiwyg to ...
7
votes
2answers
3k views

How should I configure the wysiwyg filter to align the images?

This is how my configuration in the wysiwyg filter looks like (in Drupal7): a[!href|target<_blank|title], img[src|align<bottom?left?middle?right?top|alt|border|class|height|width|float], div[...
7
votes
2answers
4k views

Media + WYSIWYG or ICME + CKeditor

I need to build quite feature rich set of tools for file & media management both for embedded and stored files in a new D7 project. Media will be added to both fields and in the WYSIWYG and File ...
6
votes
6answers
14k 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
6answers
7k 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?
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 ...
6
votes
1answer
804 views

drupal_render() is deprecated. What replaces it?

I have a render array and I want to convert it to HTML and place it in a WYSIWYG field. What is the generally accepted way to do that since drupal_render() is deprecated?
6
votes
3answers
5k views

How to show fontawesome icons in admin page inside Ckeditor?

I managed to insert fontawesome iconS using Ckeditor with the Font Awesome Icons v1 module. I just put this code in the HTML view of Ckeditor. <i class="fa fa-camera-retro fa-lg">&nbsp;&...
6
votes
3answers
4k views

ckeditor.styles.js caching issue

I have a new drupal install. The only modules installed so far are devel and ckeditor. I've added the 'styles' dropdown button and successfully directed it to the ckeditor.styles.js in my theme ...
6
votes
2answers
6k views

In Drupal 7 With Latest CKEditor, Media upload button not working

If i do install Wysiwyg + CKEditor 3.6.6.1 ( 2013.02.20) + Media module in Drupal 7 then the upload functionality works on ckeditor. Here is my screenshot: But, if i install CKEditor Drupal 7 Module +...
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 ...
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 > ...
6
votes
2answers
2k views

How can I allow users to specify image dimensions in CKEditor

I have a use case where content editors have a requirement to specify the height and the width of an image in the image properties. Sticking to styles is not possible because $reasons. The CKEditor ...
6
votes
3answers
4k views

Use responsive images inline [closed]

I can see that using styles on inline images have been left out for some reason. But when I need to make the site behave a little more responsive. I have been looking after CKeditor plugins that ...
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?
5
votes
4answers
4k views

How to disable H1 heading in CKeditor?

I'd like to give some authors a better SEO experience. How can I disable Heading 1 in builtin CKeditor in Drupal 8?
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 ...
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 ...
5
votes
2answers
6k views

How can i add WYSIWYG editor for my custom form textarea?

I wrote a custom form module in that I placed one text area: I've tried in this way: $form['message'] = array( '#title' => t('Message'), '#type' => 'textarea', '#format' => 'full_html'...
5
votes
4answers
5k views

Change CKEditor config.js without modifying module code?

I'm using the CKEditor module and I need to adjust config.js in the module's root. The problem is I don't want to make changes to any files part of the module because all those changes will get ...
5
votes
4answers
6k views

CKEditor generates <br /> when leaving a textarea field empty

I'm using CKEditor module with satisfaction, but it behaves really frustrating in one case: when leaving textareas empty, it generates <br /> tags in them after rendering CKEditor's interface. ...
5
votes
2answers
9k views

The version of CKEditor could not be detected [duplicate]

Possible Duplicate: CKEDITOR not working Drupal 7 When I try to enable CkEditor, I get the following error. I have already extracted the files in sites/all/libraries/ckeditor. Is there any ...
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 ...
5
votes
1answer
4k views

Pasting into CKEditor creates divs instead of paragraphs

I'm working with content owners who think it's a good idea to compose their content in Microsoft Word. Although I've created a detailed guide for them on how to make this less painful (describing how ...
5
votes
2answers
601 views

HTML: formatting instead of WYSIWYG

I personally tend to hate WYSIWYG editors. They take time to load and just love plain old HTML, so I just disable the editor entirely. However, I would like to have HTML from the database to be ...
5
votes
2answers
714 views

CKEditor using the website CSS

What I want, is that the CKEditor will use the website css, as you can see here: it is not the same as: I am using less css. I have tried to define the main less css file which imports all the other ...
5
votes
1answer
305 views

is it possible to disable ckeditor for private messages?

I've ckeditor through out the site.But i don't need it for private messages(privatemsg module).Is their any way to disable CKeditor only for private messages?
5
votes
2answers
3k views

Insert videos from media module into Ckeditor

I've been working the media module and inserting images with the ckeditor media widget and It's been great. I've also used some embbed media plugins to add vimeo and youtube media elements ...

1
2 3 4 5
17