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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -