diff options
author | alecpl <alec@alec.pl> | 2009-04-27 07:36:26 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-04-27 07:36:26 +0000 |
commit | 29da6414db77512106250b9832a0b4a0168bd7eb (patch) | |
tree | d3f36001953d24292166ef3ab1b62e87b3b89cf6 /program/js/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js | |
parent | 1fb5874f276e9ce7731e8f166b19a371ce33b894 (diff) |
- Updated TinyMCE to 3.2.3 version
Diffstat (limited to 'program/js/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js')
-rw-r--r-- | program/js/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/program/js/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js b/program/js/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js index 143ed9216..bef06f2d2 100644 --- a/program/js/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +++ b/program/js/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js @@ -104,16 +104,18 @@ cm.setDisabled('del', co);
cm.setDisabled('ins', co);
cm.setDisabled('attribs', n && n.nodeName == 'BODY');
+ cm.setActive('cite', 0);
+ cm.setActive('acronym', 0);
+ cm.setActive('abbr', 0);
+ cm.setActive('del', 0);
+ cm.setActive('ins', 0);
+ // Activate all
if (n) {
- cm.setDisabled(n.nodeName.toLowerCase(), 0);
- cm.setActive(n.nodeName.toLowerCase(), 1);
- } else {
- cm.setActive('cite', 0);
- cm.setActive('acronym', 0);
- cm.setActive('abbr', 0);
- cm.setActive('del', 0);
- cm.setActive('ins', 0);
+ do {
+ cm.setDisabled(n.nodeName.toLowerCase(), 0);
+ cm.setActive(n.nodeName.toLowerCase(), 1);
+ } while (n = n.parentNode);
}
});
},
|