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

index e31e601..42e461c 100644 (file)
@@ -1458,12 +1458,14 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
             
             return;
         }
+        var _this = this;
+        
         Roo.each(stylesheets, function(s) {
-            Roo.get(this.iframe.contentDocument.head).createChild({
+            Roo.get(_this.iframe.contentDocument.head).createChild({
                 tag : 'link',
                 rel : 'stylesheet',
                 type : 'text/css',
-                href : stylesheets
+                href : s
             });
         });