Roo/HtmlEditorCore.js
authorEdward <edward@roojs.com>
Fri, 19 Jun 2015 09:13:14 +0000 (17:13 +0800)
committerEdward <edward@roojs.com>
Fri, 19 Jun 2015 09:13:14 +0000 (17:13 +0800)
Roo/HtmlEditorCore.js

index e904f8a..b447ef4 100644 (file)
@@ -1457,6 +1457,10 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         var _this = this;
         
         Roo.each(stylesheets, function(s) {
+            if(!s.length){
+                return;
+            }
+            
             Roo.get(_this.iframe.contentDocument.head).createChild({
                 tag : 'link',
                 rel : 'stylesheet',