From 77bf403e3197c1bc7b49af351a4cf3083d021384 Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 19 Jun 2015 16:59:19 +0800 Subject: [PATCH] Roo/HtmlEditorCore.js --- Roo/HtmlEditorCore.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index 08ad41ee97..ff5da54208 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -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 += '' // }); - Roo.get(this.iframe.contentDocument.head).createChild({ - tag : 'link', - rel : 'stylesheet', - type : 'text/css', - href : href - }); + }, removeStylesheets : function() -- 2.39.2