CKEditor support for textfields

Created on 16 February 2015, almost 10 years ago
Updated 20 September 2023, over 1 year ago

If you have a plain text field in Drupal that uses the wysiwyg (ckeditor) widget, no text will appear and when you attempt to save the text entered in ckeditor will not save.

This is because of how CKEDITOR.replace() works. it will use the innerHTML() of any DOM element, http://docs.ckeditor.com/#!/api/CKEDITOR-method-replace. To get around this it might be possible to clone the original textfield before calling CKEDITOR.replace, replacing the textfield with a textarea. Then when the CKEDITOR instance is destroyed, the original textfield may replace the textarea that was created.

✨ Feature request
Status

Needs work

Version

2.0

Component

Editor - CKEditor

Created by

πŸ‡ΊπŸ‡ΈUnited States svajlenka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024