- 🇫🇷France prudloff Lille
Drupal 7 is EOL and this module does not have a D8+ branch.
Hello,
We recently updated Scald to 1.12 on one of our websites (with Drupal 7.23) and now when I click on an image atom in CKEditor, it replaces the content of the CKE iframe with the image.
This seems to happen because the atom HTML contains an <a>
tag so the browser thinks we are clicking on it and nothing prevents this action from happening.
This seems to fix the issue for us:
diff --git a/modules/scald/modules/fields/mee/plugins/ckeditor/plugin.js b/modules/scald/modules/fields/mee/plugins/ckeditor/plugin.js
index 63c6ef4..27b2100 100644
--- a/modules/scald/modules/fields/mee/plugins/ckeditor/plugin.js
+++ b/modules/scald/modules/fields/mee/plugins/ckeditor/plugin.js
@@ -156,6 +156,7 @@ CKEDITOR.plugins.add('dnd', {
editor.document.on('click', function (evt) {
var element = dnd.getWrapperElement(evt.data.getTarget());
if (element) {
+ evt.data.preventDefault(true);
}
});
Closed: won't fix
1.12
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Drupal 7 is EOL and this module does not have a D8+ branch.