comparison media/js/tiny_mce/plugins/contextmenu/editor_plugin_src.js @ 247:6ed2932901fa

Update tinymce to 3.3.9
author Brian Neal <bgneal@gmail.com>
date Sat, 18 Sep 2010 19:54:11 +0000
parents 237710206167
children
comparison
equal deleted inserted replaced
246:e4dc0b649fcb 247:6ed2932901fa
45 // Restore the last selection since it was removed 45 // Restore the last selection since it was removed
46 if (lastRng) 46 if (lastRng)
47 ed.selection.setRng(lastRng); 47 ed.selection.setRng(lastRng);
48 48
49 t._getMenu(ed).showMenu(e.clientX, e.clientY); 49 t._getMenu(ed).showMenu(e.clientX, e.clientY);
50 Event.add(ed.getDoc(), 'click', hide); 50 Event.add(ed.getDoc(), 'click', function(e) {
51 hide(ed, e);
52 });
51 Event.cancel(e); 53 Event.cancel(e);
52 } 54 }
55 });
56
57 ed.onRemove.add(function() {
58 if (t._menu)
59 t._menu.removeAll();
53 }); 60 });
54 61
55 function hide(ed, e) { 62 function hide(ed, e) {
56 lastRng = null; 63 lastRng = null;
57 64