2

How can I add shortcut Ctrl+Enter to tinyMCE (v4) to make it post the form the editor is used with? I’ve tried this but doesn’t appear to work:

<script><!--
$('#txtField1').tinymce({
script_url:"js/tinymce/tinymce.min.js",
content_css:"css/editor.xxm",
//etc. all of my other config goes here
setup: function(e){
  e.shortcuts.add("ctrl+enter","submit",function(){document.form[0].submit();});}
});
//--></script>