diff --git a/public/js/wn/ui/editor.js b/public/js/wn/ui/editor.js index 6dd41d6ed8..61a2c59c3f 100644 --- a/public/js/wn/ui/editor.js +++ b/public/js/wn/ui/editor.js @@ -446,7 +446,7 @@ bsHTMLEditor = Class.extend({ this.modal.addClass("wn-ignore-click"); this.modal.find(".btn-primary").on("click", function() { var html = me.modal.find("textarea").val(); - $.each(me.dataurls, function(key, val) { + $.each(me.editor.dataurls, function(key, val) { html = html.replace(key, val); }) me.editor.html(html); @@ -459,13 +459,13 @@ bsHTMLEditor = Class.extend({ this.modal.modal("show") var html = me.editor.html(); // pack dataurls so that html display is faster - this.dataurls = {} + this.editor.dataurls = {} html = html.replace(/