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

index 08ad41e..ff5da54 100644 (file)
@@ -1448,17 +1448,19 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
     
     setStylesheets : function(stylesheets)
     {
-//        if(typeof(href) ==)
+        if(typeof(stylesheets) == 'string'){
+            Roo.get(this.iframe.contentDocument.head).createChild({
+                tag : 'link',
+                rel : 'stylesheet',
+                type : 'text/css',
+                href : stylesheets
+            });
+        }
 //        Roo.each(this.stylesheets, function(s) {
 //            st += '<link rel="stylesheet" type="text/css" href="' + s +'" />'
 //        });
 
-        Roo.get(this.iframe.contentDocument.head).createChild({
-            tag : 'link',
-            rel : 'stylesheet',
-            type : 'text/css',
-            href : href
-        });
+        
     },
     
     removeStylesheets : function()