projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0d9eb0
)
Roo/HtmlEditorCore.js
author
edward
<edward@roojs.com>
Mon, 26 Mar 2018 03:56:45 +0000
(11:56 +0800)
committer
edward
<edward@roojs.com>
Mon, 26 Mar 2018 03:56:45 +0000
(11:56 +0800)
Roo/HtmlEditorCore.js
patch
|
blob
|
history
diff --git
a/Roo/HtmlEditorCore.js
b/Roo/HtmlEditorCore.js
index
20f03fa
..
bfdc484
100644
(file)
--- a/
Roo/HtmlEditorCore.js
+++ b/
Roo/HtmlEditorCore.js
@@
-1550,6
+1550,17
@@
Roo.extend(Roo.HtmlEditorCore, Roo.Component, {
Roo.each(Roo.get(_this.iframe.contentDocument.head).select('link[rel=stylesheet]', true).elements, function(s){
s.remove();
});
+ },
+
+ setStyle : function(style)
+ {
+ Roo.get(this.iframe.contentDocument.head).createChild({
+ tag : 'style',
+ type : 'text/css',
+ html : style
+ });
+
+ return;
}
// hide stuff that is not compatible