Mercurial > public > sg101
comparison static/js/tiny_mce/plugins/noneditable/editor_plugin_src.js @ 442:6c182ceb7147
Fixing #217; upgrade TinyMCE to 3.4.2 and enable the paste plugin.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 26 May 2011 00:43:49 +0000 |
parents | 88b2b9cb8c1f |
children |
comparison
equal
deleted
inserted
replaced
441:33d0c55e57a9 | 442:6c182ceb7147 |
---|---|
71 if (s) { | 71 if (s) { |
72 ed.onKeyDown.addToTop(t._block); | 72 ed.onKeyDown.addToTop(t._block); |
73 ed.onKeyPress.addToTop(t._block); | 73 ed.onKeyPress.addToTop(t._block); |
74 ed.onKeyUp.addToTop(t._block); | 74 ed.onKeyUp.addToTop(t._block); |
75 ed.onPaste.addToTop(t._block); | 75 ed.onPaste.addToTop(t._block); |
76 ed.onContextMenu.addToTop(t._block); | |
76 } else { | 77 } else { |
77 ed.onKeyDown.remove(t._block); | 78 ed.onKeyDown.remove(t._block); |
78 ed.onKeyPress.remove(t._block); | 79 ed.onKeyPress.remove(t._block); |
79 ed.onKeyUp.remove(t._block); | 80 ed.onKeyUp.remove(t._block); |
80 ed.onPaste.remove(t._block); | 81 ed.onPaste.remove(t._block); |
82 ed.onContextMenu.remove(t._block); | |
81 } | 83 } |
82 | 84 |
83 t.disabled = s; | 85 t.disabled = s; |
84 } | 86 } |
85 } | 87 } |