Friday, 15 June 2012

javascript - disableing enter/return key from within Tiny MCE -


Hello I have tried several "goggles" snippets to disable the login / return key but nothing is working is. Any ideas about deactivation of the entry / withdrawal key in the Tiny MEEE textile?

Here is the code I used to disable on some inline elements. It works with TinyMCE 4:

  tinymce.init ({tinymce_jquery: true, selector: ".className", inline: true, toolbar: "undo", menubar: wrong , Setup: function (ed) {ed.on ('keydown', function (e) {if (e.keyCode == 13) {e.preventDefault ();}}};}});  

No comments:

Post a Comment