Questions tagged [wysiwyg]

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

Filter by
Sorted by
Tagged with
-1
votes
1answer
39 views

How do I make it easy for users to upload images into a text area?

I would like to make it easy for users to add images to text areas. I enabled the "Image" plugin for a TinyMCE 3.5.11 WYSIWYG profile in Drupal 7. It looks like this: It is unclear, to the end user,...
-1
votes
1answer
889 views

How to embed and play on same page like popup?

I'm learning web development with Drupal 7. I can embed youtube video using CKEditor on a node. I like to play embedded video looks like on YIFY and IMDB as popup/overlay. It means when I click on ...
1
vote
1answer
622 views

Media Wysiwyg + CKeditor. Replace inline images with custom images programmatically

I am trying to replace individual images in old node body with a default image using media + ckeditor programatically so as to save disk space as there are lot of images in server. I was successful ...
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 ...
0
votes
1answer
181 views

How can I edit metadata and custom fields for an embedded image using Media Module in a WYSIWYG in D7

I need the ability to edit custom fields (Caption, Credit) on an image that has been placed in a WYSIWYG. I'm using the latest dev version of the media module and WYSIWYG + CKeditor. I see the fields ...
0
votes
1answer
21 views

Content change on hook

I am working on a new content type. I created a hook that loops through a .csv file on its load, and makes a table from it. What I want to do now is including this new table automatically in the ...
0
votes
0answers
231 views

Simplest custom button: It shows in admin panel for text format, but not in the editor

I have followed this tutorial to make simple custom button for CKEditor. I managed to get it visible in Drupal admin panel and I added my button to admin/config/content/formats/manage/full_html. When ...
0
votes
1answer
27 views

File browser of ckeditor increase overhead by loading unnecessary folders

When I try to use the image file browser of the CKeditor, the browser takes a lot of time to load. When I checked the request, I found that the browser loads a lot of folders that are not even ...
1
vote
1answer
1k views

How to add default text to CKEditor?

I am using CKEditor and I want ,when creating a new node, in the textarea of CKEditor to add some default text every time a user tries to create a new node. How can I do that? thanks
1
vote
1answer
321 views

CKEditor is adding inline style to resize my textarea on node add/edit form

No matter how many rows I define the textarea to be in the content type configuration, I get a huge editor taking up almost the whole browser window in the node add/edit page. I tracked this down to ...
0
votes
1answer
219 views

Not all custom theme styles shown in ckeditor window

In my theme.info.yml file I set my theme CSS to be also used in the ckeditor window. The problem is that in my CSS I declared some styles to be only applied within #content section, so it doesn't show ...
1
vote
1answer
30 views

How can I add this image plugin, on a new clean/new texteditor?

When I want to add a texteditor admin/config/content/formats 4 editors; basic,restricted,full and plain are pre installed. The basic.HTML CKEditor is with image plugin installed When I create a new ...
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 <...
1
vote
0answers
155 views

Add options to the FORMAT drop down in CKEditor?

How can you add block formats to the Format drop down in CKEditor? There used to be an input in D7+WYSIWYG as to what was allowed. No matter if I check or uncheck "Limit HTML to the following tags:", ...
0
votes
1answer
258 views

CKeditor is not working with jquery > 1.8

I'm trying to get superfish accordion working on my pages. I have to have my jquery_update set to 1.9 or greater to get that function working. But when I do I lose ckeditor on the comment fields for ...
1
vote
1answer
2k views

How do I stop automatic double break tags in ckeditor?

After updating the ckeditor module i find that saving existing content results in adding another break tag following existing break tags. When i create new content and press enter and save the final ...
1
vote
1answer
64 views

CKEditor - Alignment [closed]

I' trying to set up CKEditor options as in the following screenshoot: Everythings works fine except the alignment buttons: I saw that an issue (2649546) about this has been created but it seems that ...
1
vote
0answers
136 views

How do I add options from a module page to <select> list in CKeditor dialog? [closed]

I'm trying to get list values from drupal .module page to ck-editor Plugin.js file iam getting this error https://snag.gy/ah3Poz.jpg in my module.module page i have written function ...
0
votes
0answers
442 views

Custom ckeditor library plugins not showing

I created a custom ckeditor library from Ckeditor Builder. I am using the latest version. I tried this library with both ckeditor and wysiwyg module. When I go to ckeditor settings in admin, I only ...
1
vote
1answer
63 views

Enabling text editor on statuses form

I was looking to use a text editor with statuses. Statuses is neither a Node nor an Entity. I searched a lot and found a simple solution. I just has to replace '#type' => 'textarea', with '#type' =&...
10
votes
3answers
7k 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 ...
0
votes
1answer
269 views

How may I allow users to embed a view within a CKEditor text field?

I'm working on a site that includes a number of service pages (think practice areas in a law firm site) and each service has a number of identical content components (call to actions, legal ...
-6
votes
1answer
121 views

Why doesn't the following HTML/CSS code appear on Drupal sites?

The following HTML with CSS inline shows up correctly in the editor, but not when it's saved. what's the reason? I've checked it with Drupal 7 and Drupal 8 (if you wan't to quick-test it yourself: ...
1
vote
4answers
3k views

adding ckeditor color button and font size

I am new to drupal. I am using drupal 8.2.5, bartik theme and i would like to add font size&family and colour buttons to the ckeditor. i installed the "CKEditor Font Size and Family" module, ...
1
vote
1answer
788 views

Need CKEditor to encode special characters

I would like CKEditor to encode all special characters. Currently it only html escapes >, <, and & I believe. I need the current html markup of this Let's take a "ride!" to become something ...
2
votes
1answer
1k views

Integrate TinyMCE

I need to install Tinymce in Drupal 8 as default text editor. I have searched for a solution but there is no much information. I have deduced that the 'old' module wysywig (an RTE's manage module) ...
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 ...
0
votes
2answers
426 views

How to prevent certain bundled CKEditor plugins from loading

There is hook_ckeditor_settings_alter() to change/alter CKEditor settings. But I can't find a way to prevent certain CKEditor plugins from loading. I am trying to achieve similar behaviors as here: ...
0
votes
2answers
700 views

I have WYSIWYG and CKEditor 3.6.6.1 and want to install the latest CKEditor 4.6.1

My goal is to paste images (best if copied from word together with text) directly without uploading them first. I got a D7 site with WYSIWYG installed. The module tells me it uses the CKEditor 3.6.6....
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 ...
0
votes
1answer
186 views

How to use TinyMCE 4.5 with the WYSIWYG module?

I am using the WYSIWYG module on Drupal 7, but the only TinyMCE editor I can use is version 3.5. I would like to use the version found here. How can I install this?
0
votes
1answer
745 views

Is there any way to add the css class to tinymce inside wysiwyg editor

I have several classes defined inside style.css, I want tinymce to recognize these classes. Below is the popup to configure hyperlinks. It also provide a way to use css styles defined already. I am ...
1
vote
3answers
789 views

Internal links aren't getting aliased

When saving an internal link to content (within the wysiwyg editor), the paths don't get aliased like they do with D7. If I have a node (at path /node/10), with an alias of /some/other/path, when ...
1
vote
0answers
820 views

How to stop CKEditor from removing alt and title attributes collected by Media Browser

I am using Media Browser to upload images and when I do there are two fields that collect title and alt attributes. When I save I notice that the attributes are not there and I have to go into ...
1
vote
2answers
436 views

CKeditor has empty node body for some nodes

On Drupal 7.52 and ckeditor module 1.17 (library version 4.6.1) and this is driving me insane. Here's a list of things I've noticed and tried: Seems to primarily happen with unpublished nodes but not ...
1
vote
2answers
529 views

Caption on CKEditor with Media embed only allows 128 characters

Using Drupal 8, the Media module, and the CKEditor that comes with D8. When you add an image media item, you get your screen like this... But that caption field only allows 128 characters. Media (I ...
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?
1
vote
0answers
33 views

How to get Wysiwyg module to work?

I am restructuring a website built with Drupal 7 so I wanted to set up TinyMCE with the Wysiwyg module. I followed the instruction and installed the plugin in the libraries folder. In the admin ...
3
votes
1answer
271 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
1answer
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 ...
0
votes
1answer
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
1answer
71 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
0answers
355 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 "...
1
vote
1answer
574 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 ...
2
votes
1answer
1k 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
1answer
313 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":...
0
votes
2answers
1k 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 ...
1
vote
0answers
484 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
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 ...
0
votes
1answer
38 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 ...

1 2 3
4
5
17