includes/clientside/tinymce/plugins/style/editor_plugin_src.js
changeset 543 dffcbfbc4e59
parent 395 fa4c5ecb7c9a
equal deleted inserted replaced
542:5841df0ab575 543:dffcbfbc4e59
     1 /**
     1 /**
     2  * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
     2  * $Id: editor_plugin_src.js 787 2008-04-10 11:40:57Z spocke $
     3  *
     3  *
     4  * @author Moxiecode
     4  * @author Moxiecode
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     5  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
     6  */
     6  */
     7 
     7 
    26 					ed.dom.setAttrib(e, 'style', v);
    26 					ed.dom.setAttrib(e, 'style', v);
    27 					ed.execCommand('mceRepaint');
    27 					ed.execCommand('mceRepaint');
    28 				}
    28 				}
    29 			});
    29 			});
    30 
    30 
       
    31 			ed.onNodeChange.add(function(ed, cm, n) {
       
    32 				cm.setDisabled('styleprops', n.nodeName === 'BODY');
       
    33 			});
       
    34 
    31 			// Register buttons
    35 			// Register buttons
    32 			ed.addButton('styleprops', {title : 'style.desc', cmd : 'mceStyleProps'});
    36 			ed.addButton('styleprops', {title : 'style.desc', cmd : 'mceStyleProps'});
    33 		},
    37 		},
    34 
    38 
    35 		getInfo : function() {
    39 		getInfo : function() {