TinyMCE换档输入UL

TinyMCE换档输入UL,tinymce,html-lists,Tinymce,Html Lists,TinyMCE和Shift+Enter在标记中出现问题 起初,我使用的是TinyMCE的一个非常旧的版本,其工作原理如下: 当我在无序列表中按Enter键时,创建了一个新的点。 当我在无序列表中按Shift+Enter键时,创建了一个新的空白区域,如 现在的问题是我已经升级到了TinyMCE的新版本。 现在Shift+Enter不再工作,它将创建一个新的点,而不是空白 这辆车是定期的 这是我的TinyMCE配置: $('textarea.tinymce').tinymce({ s

TinyMCE和Shift+Enter在标记中出现问题

起初,我使用的是TinyMCE的一个非常旧的版本,其工作原理如下: 当我在无序列表中按Enter键时,创建了一个新的点
  • 。 当我在无序列表中按Shift+Enter键时,创建了一个新的空白区域,如

    现在的问题是我已经升级到了TinyMCE的新版本。 现在Shift+Enter不再工作,它将创建一个新的点
  • ,而不是空白

    这辆车是定期的 这是我的TinyMCE配置:

    $('textarea.tinymce').tinymce({
            script_url : 'js/tinymce/jscripts/tiny_mce/tiny_mce.js',
    
            language : 'nl',        
            theme : "advanced",
            plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager",
    
            theme_advanced_buttons1 : "bold,italic,underline,forecolor,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|, formatselect",
            theme_advanced_buttons2 : "copy, pasteword,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,code",
            theme_advanced_buttons3 : "hr,removeformat,visualaid,|,tablecontrols,iespell",
    
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_resizing : true,
    
            content_css : "style/tiny-mce.css",
    
            theme_advanced_blockformats : "p,h1,h2,h3,h4,h5,h6",
            forced_root_block : false,
            force_br_newlines : true,
            force_p_newlines : false,
            paste_create_paragraphs : false,
            paste_create_linebreaks : false,
            paste_use_dialog : false,
            paste_auto_cleanup_on_paste : true,
            paste_convert_middot_lists : false,
            paste_unindented_list_class : "unindentedList",
            paste_convert_headers_to_strong : true, 
            convert_urls : false,
            width : "802px"
        });
    

    看起来Moxiecode改变了tinymce的行为。您唯一能做的就是编写一个自定义函数,并处理id不建议的STRG+ENTER处理