projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
139dbf5
)
Roo/bootstrap/form/HtmlEditorToolbar/Standard.js
author
Alan
<alan@roojs.com>
Fri, 10 Feb 2023 07:17:06 +0000
(15:17 +0800)
committer
Alan
<alan@roojs.com>
Fri, 10 Feb 2023 07:17:06 +0000
(15:17 +0800)
Roo/bootstrap/form/HtmlEditorToolbar/Standard.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/form/HtmlEditorToolbar/Standard.js
b/Roo/bootstrap/form/HtmlEditorToolbar/Standard.js
index
14e0825
..
f3ba154
100644
(file)
--- a/
Roo/bootstrap/form/HtmlEditorToolbar/Standard.js
+++ b/
Roo/bootstrap/form/HtmlEditorToolbar/Standard.js
@@
-208,8
+208,16
@@
Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Standard, Roo.bootstrap.nav.Simp
sel = ev.target;
}
-
-
+ var tn = sel.tagName.toUpperCase();
+ if (tn != 'A') {
+ var asel = sel.closest('A');
+ if (asel) {
+ sel = asel;
+ }
+ }
+ if (tn == 'A') {
+ btns.get('link').setActive(tn == 'A');
+ }