forked from mvdkleijn/tinymce
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtinymce.js
More file actions
23 lines (20 loc) · 764 Bytes
/
tinymce.js
File metadata and controls
23 lines (20 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
* @author Martijn van der Kleijn <martijn.niji@gmail.com>
* @copyright 2008, 2009 Martijn van der Kleijn
* @version 3.0.0
*/
/***********************************************
*** DO NOT CHANGE ANYTHING BELOW THIS LINE! ***
***********************************************/
$(document).ready(function() {
$('.filter-selector').live('wolfSwitchFilterOut', function(event, filtername, elem) {
if (filtername == 'tinymce') {
tinyMCE.execCommand('mceRemoveControl', true, elem.attr('id'));
}
});
$('.filter-selector').live('wolfSwitchFilterIn', function(event, filtername, elem) {
if (filtername == 'tinymce') {
tinyMCE.execCommand('mceAddControl', true, elem.attr('id'));
}
});
});