includes/clientside/tinymce/plugins/contextmenu/editor_plugin_src.js
changeset 459 31c23016ab62
parent 395 fa4c5ecb7c9a
child 543 dffcbfbc4e59
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 618 2008-02-21 13:13:32Z 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 
    31 			ed.onKeyDown.add(hide);
    31 			ed.onKeyDown.add(hide);
    32 			Event.add(document, 'click', hide);
    32 			Event.add(document, 'click', hide);
    33 		},
    33 		},
    34 
    34 
    35 		_getMenu : function(ed) {
    35 		_getMenu : function(ed) {
    36 			var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am;
    36 			var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2;
    37 
    37 
    38 			if (m) {
    38 			if (m) {
    39 				m.removeAll();
    39 				m.removeAll();
    40 				m.destroy();
    40 				m.destroy();
    41 			}
    41 			}