From dc00dc044533cd8e2dc396003d30ba6c10fc09cf Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 5 Nov 2013 22:47:12 +0530 Subject: [PATCH] [editor] more fixes webnotes/erpnext#1011 --- public/js/wn/ui/editor.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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(/