Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- a/media/js/tiny_mce/plugins/contextmenu/editor_plugin_src.js Sat Sep 18 19:39:16 2010 +0000 +++ b/media/js/tiny_mce/plugins/contextmenu/editor_plugin_src.js Sat Sep 18 19:54:11 2010 +0000 @@ -47,11 +47,18 @@ ed.selection.setRng(lastRng); t._getMenu(ed).showMenu(e.clientX, e.clientY); - Event.add(ed.getDoc(), 'click', hide); + Event.add(ed.getDoc(), 'click', function(e) { + hide(ed, e); + }); Event.cancel(e); } }); + ed.onRemove.add(function() { + if (t._menu) + t._menu.removeAll(); + }); + function hide(ed, e) { lastRng = null;