Defect: CKEditor with Images
Submitted by mnacko on Thu, 03/17/2016 - 13:47
I thought it might be a good idea to start logging defects and temporary fixes that have not been patched in any official releases yet. We are working on upgrading to the latest version and are several months behind at this point. Our development instance has version 12.3.0 which we are currently testing for production use.
We enabled the new CKEditor in this upgrade, which we were excited for due to numerous problems in the old editor. This introduced a few new problems, one of which surrounds images. If you insert an image, save and exit the page, open the page for editing, double click on the image and pick a new image, it looks like it updates but it reverts back to the old image when you save.
Jadu acknowledged that this was a defect but does not have a date when it will be included in a patch set. In the mean time, you can fix the defect by editing public_html/jadu/editors/ckeditors/plugins/jaduimage/plugin.js.
Find:
this.imageElement.setAttribute('src', src);
Add Below:
this.imageElement.setAttribute('data-cke-saved-src', src);
General Concept:
Jadu Product:
