equal
deleted
inserted
replaced
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() { |