projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix checking for attribute on word filter
[roojs1]
/
roojs-bootstrap-debug.js
diff --git
a/roojs-bootstrap-debug.js
b/roojs-bootstrap-debug.js
index
c65c23b
..
a5e171c
100644
(file)
--- a/
roojs-bootstrap-debug.js
+++ b/
roojs-bootstrap-debug.js
@@
-26688,7
+26688,7
@@
Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
if (!ns.className.match(/(MsoListParagraph|ql-indent-1)/i)) {
break;
}
if (!ns.className.match(/(MsoListParagraph|ql-indent-1)/i)) {
break;
}
- if (ns.getAttribute('style').match(/mso-list/)) {
+ if (ns.
hasAttribute('style') && ns.
getAttribute('style').match(/mso-list/)) {
items.push(ns);
ns = ns.nextSibling;
has_list = true;
items.push(ns);
ns = ns.nextSibling;
has_list = true;
@@
-26700,7
+26700,7
@@
Roo.extend(Roo.htmleditor.FilterWord, Roo.htmleditor.Filter,
}
var has_list = false;
for(var i = 0; i < spans.length; i++) {
}
var has_list = false;
for(var i = 0; i < spans.length; i++) {
- if (spans[i].getAttribute('style').match(/mso-list/)) {
+ if (spans[i].
hasAttribute('style') && spans[i].
getAttribute('style').match(/mso-list/)) {
has_list = true;
break;
}
has_list = true;
break;
}