Questions tagged [wysiwyg]

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

Filter by
Sorted by
Tagged with
4
votes
2answers
4k views

How to print text (formatted, long) in twig without raw filter?

We have a text (formatted, long) field that is used to insert embed code such as the Youtube embed code for videos. When printing the field in twig we are finding that rather than rendering the ...
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 ...
4
votes
3answers
3k views

<?php replaced with <!--?php [closed]

I am upgrading Drupal 6.26 to Drupal 7. I had a small handful of nodes (a dozen or so) that contained PHP code. After the upgrade, I've found that the <?php tags have been replaced with <!--?php....
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 ...
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
9k views

How to prevent CKEditor from replacing spaces with &nbsp;?

I'm using CKEditor 4.2 with D7 and the editor is replacing every space with an HTML non-breaking space. For instance, if I type: This is a paragraph and then either save or view source, I'll get the ...
4
votes
4answers
5k views

CKEditor doesn't show JavaScript

I have Drupal 7 with CKEditor 3.6.2.7275 under Wysiwyg module. In configs of Wysiwyg I unchecked all the checkboxes for "Cleanup and output" category. Plus unchecked "Limit allowed HTML tags" for Full ...
4
votes
1answer
2k views

Wrapping content in anchor tags with CKEditor

I am trying to wrap a block of HTML content in an tag in a Drupal 8 installation: <a href="/link"><h2>Link 1</h2><h3>Subheader link 1</h3></a> CKEditor changes ...
4
votes
3answers
571 views

ckeditor loads all the page html while editing not only the body field

I have strange issue with ckeditor that it loads all page source including (header, menu, body, footer ...) not the node body field itself. the problem may have relation with default search module as ...
4
votes
1answer
1k views

What is causing formatting to break?

We are using WYSIWYG with CKEditor on Drupal 7. When the edit button on a node is clicked, the edit page shows text in a jumbled mess, even if there was careful formatting. The text formats have the "...
4
votes
3answers
2k views

Disable CkEditor to body field of a content type

I enabled the CkEditor module, which is affecting all the text-area fields with summary and input format. How can I exclude the CkEditor for some fields?
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='...
4
votes
4answers
2k views

What version is the CKEditor in the CKEditor module?

I have installed the CKEditor module for Drupal 7 version 1.14. This version of the module comes with CKEditor already integrated with the module, so I am not sure how to find out exactly which ...
4
votes
3answers
2k views

How to enable ckeditor in the emails templates at admin/config/people/accounts?

Just that. I need to enable ckeditor to write the text body for the welcome e-mail message at admin/config/people/accounts How can I do this?
4
votes
4answers
4k views

TinyMCE - Drupal 7 - Insert images not functioning

I'm having trouble inserting images via TinyMCE (I've also installed WYSIWYG). I can insert images into an article just fine and all looks as it should while I'm editing an article, but if I preview ...
4
votes
1answer
3k views

How to hide text format options when using WYSIWIG module?

Using this tip I was previously hiding the text format options with $form['und'][0]['format']['#access'] = FALSE; When I enabled WYSIWYG it wouldn't show the editor and I had to use $form['und'][0]...
4
votes
5answers
8k views

Ckeditor - Not displaying text on edit node option

I've been using Ckeditor for a while to add text to created nodes. But when editing the same nodes as an authenticated user, Ckeditor doesn't show the text in the body. It still works for the ...
4
votes
6answers
10k views

Bullets and numbers not visible in CKeditor

When I edit something in CKeditor and insert a list, the bullets or numbers are not rendered in the result. Is it possible to correct it?
4
votes
4answers
11k views

How to remove paragraph tag from ckeditor?

When we insert content into ckeditor field,suppose we write single line of text into ckeditor without any html tag, why its wrapping paragraph tag automatically around the text . I need to remove ...
4
votes
3answers
1k views

Prevent WYSIWYG inline images from showing in Teaser Display

Is there an easy way to stop inline images placed through the WYSIWYG editor from showing on a teaser display? Obviously if I use the summary field the problem is solved, but the client may not be ...
4
votes
2answers
3k views

wysiwyg + ckeditor - failed to open stream sites/default/files/js/wysiwyg/wysiwyg_ckeditor_XXX.js

I am using WYSiWYG with CK editor. I am getting this error whenever i am trying to access a form with ckeditor. file_get_contents(MYSITE/sites/default/files/js/wysiwyg/...
4
votes
1answer
1k views

How to install ckfinder outside the ckeditor module folder?

I have installed both the ckeditor module and the ckfinder plugin. They work fine. So far so good. The problem is that I have ckfinder plugin inside the ckeditor module folder (sites/all/modules/...
4
votes
3answers
4k views

Append image style to an inline image in CKEditor

With views, for example, I'm able to set the image size which is to be loaded (using image styles). Is it in any way possible to do such thing in CKEditor? At the moment, Drupal is loading the ...
4
votes
1answer
665 views

Linkit not working with CkEditor

I have installed the Linkit module to a test site. I have created a profile, set Matchers and created attributes. I have gone into the CKEditor configuration and chosen my Linkit profile, added the ...
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
4k views

How do I save and retrieve CKEDITOR media (images and video) on a CDN?

I am using CKeditor, and I need to add media in content. I have enabled the media in the CKeditor configuration. Then I upload an image: The image is being added: Checking the path for the image : ...
4
votes
1answer
2k views

Media module: how to generate a pdf link?

I'm trying to use the media module to generate a link to a pdf that I uploaded using media module. The problem is that when I insert the pdf that is on my library and select the link format, it ...
4
votes
1answer
1k views

Image Resize Filter not working with WYSIWYG + CKeditor?

I have installed image resize filter, set it to be active on the 'full editor' content editing mode which is where I have CKEditor activated. CKEditor is working great, the problem is that I don't ...
4
votes
2answers
1k views

WYSIWYG do not make url when pasted in a hyperlink

When I paste a URL into a TinyMCE editor using WYWIWYG it converts the text into a link. So http://vimeo.com/18150336 would be come <a href="http://vimeo.com/18150336">http://vimeo.com/...
4
votes
0answers
163 views

How can the height of CKEditor text areas be controlled? [duplicate]

In Drupal 8.2, this worked: function MYMODULE_editor_js_settings_alter(array &$settings) { if (isset($settings['editor']['formats']['simple_formatted_text'])) { $settings['editor']['formats'...
4
votes
1answer
3k views

How to rename uploaded files

Using Drupal 8, I want to rename and clean all filenames, e.g. If someone uploads file named like this Screen Shot 2016-03-29 at 1.13.21 PM.jpg, I want to clean it so that convert all spaces to dashes ...
4
votes
0answers
369 views

Is it possible to include HTML embeds like Twitter on the WYSIWYG section of the CKEditor in D7? [closed]

I have staff writers who want to include embedded tweets in their articles. However, they don't know HTML and aren't able to use the "source" section of the editor. Is there a way to embed the HTML ...
4
votes
2answers
3k views

Disable rich text editor by default

I am using WYSIWYG module with TinyMce as Rich Text Editor. I need to make the rich text editor disabled only for a particular text area in a create content page, i.e., when I click Enable rich-text ...
3
votes
5answers
10k views

FontAwesome tags removed when switching between Source and Wysiwyg

I am using http://fortawesome.github.com/Font-Awesome/ - popular iconic font When I insert "i" tag i.e. it is saved only in source mode enabled, but removed from html when saving in wysiwyg mode. ...
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
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?
3
votes
4answers
11k views

Best way to insert video (vimeo and youtube) into content

What is the best way to embed videos into content? Often it's not ideal just to have video content at the beginning or end end of page content. More often then not it something like [text] [video] [...
3
votes
7answers
4k views

Disable CKEditor on summary

When I use the widget "field-type-text-with-summary" with the CKEditor, my summary is shown in the CKEditor-format. Can I prevent this and display the field with the plain-format? Hooking into the ...
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?
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,...
3
votes
4answers
2k views

How can I get my WYSIWYG editor to stop *#@&%^ing up my HTML?

I've tried every combination of "CLEANUP AND OUTPUT" settings that might conceivably prevent munging my HTML, but nothing works. No matter, what, my HTML gets flattened or in some way rewritten, ...
3
votes
3answers
4k views

problems with CKEditor install in drupal 7

I have installed CKEditor correctly and still get the error: The CKEditor component is not installed correctly. Please go to the CKEditor homepage in order to download the latest version. After ...
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
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 ...
3
votes
3answers
4k views

Token insert with CKEditor doesn't work

I'm using the CKEditor Module in combination with the Token insert (ckeditor) to show a user property in my body. It looks like this: But the results shows just the static text instead of the user ...
3
votes
4answers
9k views

How to scale uploaded image in ckeditor

I am using CKEditor, and am having a problem with the scaling of the images during edit. When I upload and insert them into my editor, if the image is very large, it displays that way in the editor, ...
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 ...
3
votes
1answer
2k views

Add class to any element with CKEditor

Is there a way to add class to any element through CKEditor? Here is an example: I create a list with CKEditor and I want to add a class to the ul tag. Or maybe on one of the li. Everything without ...
3
votes
3answers
927 views

Disable plugin ckeditor per content type

I am using the ckeditor module. I have 2 content types. Both content types use the same ckeditor profile on their body field. Is it possible, without creating another profile, to disable a certain ...
3
votes
1answer
270 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
2
3 4 5
17