includes/clientside/tinymce/plugins/layer/editor_plugin_src.js
changeset 459 31c23016ab62
parent 395 fa4c5ecb7c9a
child 476 f26a69c40431
equal deleted inserted replaced
458:c433348f3628 459:31c23016ab62
     1 /**
     1 /**
     2  * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
     2  * $Id: editor_plugin_src.js 592 2008-02-12 18:09:06Z 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 
    33 			ed.addButton('absolute', {title : 'layer.absolute_desc', cmd : 'mceMakeAbsolute'});
    33 			ed.addButton('absolute', {title : 'layer.absolute_desc', cmd : 'mceMakeAbsolute'});
    34 			ed.addButton('insertlayer', {title : 'layer.insertlayer_desc', cmd : 'mceInsertLayer'});
    34 			ed.addButton('insertlayer', {title : 'layer.insertlayer_desc', cmd : 'mceInsertLayer'});
    35 
    35 
    36 			ed.onInit.add(function() {
    36 			ed.onInit.add(function() {
    37 				if (tinymce.isIE)
    37 				if (tinymce.isIE)
    38 					ed.execCommand('2D-Position');
    38 					ed.getDoc().execCommand('2D-Position', false, true);
    39 			});
    39 			});
    40 
    40 
    41 			ed.onNodeChange.add(t._nodeChange, t);
    41 			ed.onNodeChange.add(t._nodeChange, t);
    42 			ed.onVisualAid.add(t._visualAid, t);
    42 			ed.onVisualAid.add(t._visualAid, t);
    43 		},
    43 		},