Fixed issue with Macro dialog not closed when inserting macro into RTE (http://twitter.com/kolchy/status/220068628140269570)
This commit is contained in:
@@ -76,12 +76,8 @@
|
||||
|
||||
var macroElement = ed.dom.getParent(ed.selection.getStart(), 'div.umbMacroHolder');
|
||||
|
||||
if (macroElement) {
|
||||
|
||||
// mark button if it's a macro
|
||||
cm.setActive('umbracomacro', ed.dom.hasClass(currentSelection, 'umbMacroHolder') || ed.dom.hasClass(macroElement, 'umbMacroHolder'));
|
||||
}
|
||||
|
||||
// mark button if it's a macro
|
||||
cm.setActive('umbracomacro', macroElement && ed.dom.hasClass(macroElement, 'umbMacroHolder'));
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user