Roo/HtmlEditorCore.js
authorAlan Knowles <alan@roojs.com>
Tue, 22 Dec 2020 06:12:25 +0000 (14:12 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 22 Dec 2020 06:12:25 +0000 (14:12 +0800)
Roo/HtmlEditorCore.js

index 0a5fe70..933d8cb 100644 (file)
@@ -160,10 +160,11 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
                 st = '<style type="text/css">' +
                     'body{border:0;margin:0;padding:3px;height:98%;cursor:text;}' +
                    '</style>';
-        } else { 
-            st = '<style type="text/css">' +
-                    this.stylesheets +
-                '</style>';
+        } else {
+            for (var i in this.stylesheets) { 
+                st += '<link rel="stylesheet" href="' + this.stylesheets[i] +'" type="text/css">';
+            }
+            
         }
         
         st +=  '<style type="text/css">' +