javascript - ckEditor Image does not get saved after upload when image selected -
i trying solve riddle here. imagine following. user uploads 1 image, minute later wants replace. clicks on image , selects upload button again, chooses image , uploads it. in editor image shown, when saves change, old image shown again.
my guess is, due fact src-attribute gets updated, not data-cke-saved-src-attribute. question is: how change that?
i should mention, since have blur-handler, asking user if wants discard change. fires whenever dialog opens, why "refocusing" editor using following snippet:
ckeditor.on('dialogdefinition', function (e) { var dialog = e.data.definition.dialog; dialog.on('hide', function () { dis.ckeditor.focusmanager.hasfocus = true; $('.cke').show(); }); });
Comments
Post a Comment