Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295807

CKEditor throws JS errors if a contenteditable div element exists on the page

$
0
0

Problem/Motivation

When a page, that has a field with CKEditor, has also a contenteditable div element, it throws errors in the browser console like this:

GET https://example.com/modules/contrib/ckeditor/vendor/config.js?t=rl6loo - 404 Not Found
GET https://example.com/modules/contrib/ckeditor/vendor/styles.js?t=rl6loo - 404 Not Found

Steps to reproduce

1. Get some entity edit form with CKEditor field (eg Node).

2. Add a contenteditable div element to the form, eg this one:

<div contenteditable="true">foo</div>

3. Load the form and see the errors like this:

GET https://example.com/modules/contrib/ckeditor/vendor/config.js?t=rl6loo - 404 Not Found
GET https://example.com/modules/contrib/ckeditor/vendor/styles.js?t=rl6loo - 404 Not Found

Proposed resolution

CKEditor 4 has the disableAutoInline option, that should fix this problem, regarding to documentation https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR.html#cfg-disable...
but this is not working in my case.

So maybe we can find some other fix or a workaround for this problem?

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 295807

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>