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

index ff5da54..e31e601 100644 (file)
@@ -1455,10 +1455,17 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
                 type : 'text/css',
                 href : stylesheets
             });
+            
+            return;
         }
-//        Roo.each(this.stylesheets, function(s) {
-//            st += '<link rel="stylesheet" type="text/css" href="' + s +'" />'
-//        });
+        Roo.each(stylesheets, function(s) {
+            Roo.get(this.iframe.contentDocument.head).createChild({
+                tag : 'link',
+                rel : 'stylesheet',
+                type : 'text/css',
+                href : stylesheets
+            });
+        });
 
         
     },