fix some zero-width space weirdness
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / documentElement.js
index dcf05b2..d6d60d3 100644 (file)
@@ -279,7 +279,7 @@ $.extend(DocumentTextElement.prototype, {
         if(text === '') {
             text = utils.unicode.ZWS;
         }
-        if(text !== this.getText()) {
+        if(text !== this.dom.contents()[0].data) {
             this.dom.contents()[0].data = text;
         }
     },