Roo/HtmlEditorCore.js
authorAlan Knowles <alan@roojs.com>
Wed, 17 Jun 2015 08:35:12 +0000 (16:35 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 17 Jun 2015 08:35:12 +0000 (16:35 +0800)
Roo/HtmlEditorCore.js

index 2609a0c..8c170ef 100644 (file)
@@ -1265,7 +1265,8 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         var tagName = Roo.util.Format.htmlEncode(currentElement.tagName);
         
         if  (nodeName == '#text') {
-            return currentElement.nodeValue;
+            
+            return nopadtext ? currentElement.nodeValue : currentElement.nodeValue.trim();
         }