projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
302765d
)
Roo/HtmlEditorCore.js
author
Alan
<alan@roojs.com>
Tue, 28 Dec 2021 08:09:58 +0000
(16:09 +0800)
committer
Alan
<alan@roojs.com>
Tue, 28 Dec 2021 08:09:58 +0000
(16:09 +0800)
Roo/HtmlEditorCore.js
patch
|
blob
|
history
diff --git
a/Roo/HtmlEditorCore.js
b/Roo/HtmlEditorCore.js
index
ece480b
..
3acb71d
100644
(file)
--- a/
Roo/HtmlEditorCore.js
+++ b/
Roo/HtmlEditorCore.js
@@
-359,6
+359,8
@@
Roo.extend(Roo.HtmlEditorCore, Roo.Component, {
new Roo.htmleditor.FilterAttributes({node : div, attrib_black: [ 'contenteditable' ] });
//?? tidy?
+ new Roo.htmleditor.FilterBlock({ node : div });
+
var html = div.innerHTML;
if(Roo.isSafari){
var bs = bd.getAttribute('style'); // Safari puts text-align styles on the body element!
@@
-594,7
+596,7
@@
Roo.extend(Roo.HtmlEditorCore, Roo.Component, {
this.insertAtCursor(d.innerHTML);
-
+ Roo.htmleditor.Block.initAll(this.doc.body);
e.preventDefault();