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

index 6a1a405..e904f8a 100644 (file)
@@ -1470,7 +1470,11 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
     
     removeStylesheets : function()
     {
+        var _this = this;
         
+        Roo.each(Roo.get(_this.iframe.contentDocument.head).select('link[rel=stylesheet]', true).elements, function(s){
+            s.remove();
+        });
     }
     
     // hide stuff that is not compatible