Bind onkeydown after TinyMCE is already initiated
问题 I like to bind the event onKeyDown after tinyMCE has already initiated for the site. $('#content_ifr').keydown(...); doesn't work here. So how could it be done? 回答1: Firstly your jQuery selector is invalid...it is looking for a tagName content_ifr which certainly can't exist. Assuming element has ID content_ifr use: $('#content_ifr').keydown(...); To call this after TinyMCE initialized use the TinyMCS oninit calback in your config object. Reference docs: http://www.tinymce.com/wiki.php