projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0a810a5
)
Roo/HtmlEditorCore.js
author
Edward
<edward@roojs.com>
Tue, 23 Apr 2019 08:10:08 +0000
(16:10 +0800)
committer
Edward
<edward@roojs.com>
Tue, 23 Apr 2019 08:10:08 +0000
(16:10 +0800)
Roo/HtmlEditorCore.js
patch
|
blob
|
history
diff --git
a/Roo/HtmlEditorCore.js
b/Roo/HtmlEditorCore.js
index
431abab
..
58b8066
100644
(file)
--- a/
Roo/HtmlEditorCore.js
+++ b/
Roo/HtmlEditorCore.js
@@
-1172,11
+1172,15
@@
Roo.extend(Roo.HtmlEditorCore, Roo.Component, {
}
if(
}
if(
- node.nodeName == 'SPAN'
&&
- !node.hasAttributes() &&
- node.childNodes.length == 1 &&
- node.firstChild.nodeName == "#text"
+ node.nodeName == 'SPAN'
+
//
!node.hasAttributes() &&
+
//
node.childNodes.length == 1 &&
+
//
node.firstChild.nodeName == "#text"
) {
) {
+ console.log(node.hasAttributes());
+ console.log(node.childNodes.length);
+ console.log(node.firstChild.nodeName);
+
console.log('run!!!!!');
var textNode = node.firstChild;
console.log(textNode);
console.log('run!!!!!');
var textNode = node.firstChild;
console.log(textNode);