输入键在froala编辑器上不起作用

Enter key not working on froala editor

本文关键字:不起作用 编辑器 froala 输入      更新时间:2023-09-26

我使用的是froala js 1.9 js。。直到昨天它一直工作得很好。。但现在回车键在编辑器上不起作用。

$('#txt_blog_editor').editable({
            inlineMode: false,
            minHeight: 700,
            //height: 700,
            plainPaste: false,
            width: 1097,
            allowedImageTypes: ["jpeg", "jpg", "png"],
            borderColor: '#00008b',
            inverseSkin: false,
            spellcheck: true,
            imageUploadURL: 'BlogPhotos.ashx',
            autosaveInterval: 1000,
            imageErrorCallback: function (data) {
                if (data.errorCode == 1) {
                }
                // No link in upload response.
                else if (data.errorCode == 2) {
                }
                // Error during file upload.
                else if (data.errorCode == 3) {
                }
                // Parsing response failed.
                else if (data.errorCode == 4) {
                }
            },
            buttons: ['bold', 'italic', 'underline', 'strikeThrough', 'sep', 'align', 'insertOrderedList', 'insertUnorderedList', 'outdent', 'indent', 'sep', 'createLink', 'insertImage', 'insertVideo', 'undo', 'redo', 'insertHorizontalRule','color']
        });

这是我要初始化的代码。。。

我已经检查了回车键是否适用于任何其他页面元素,但不适用于此编辑器。

有一个新版本1.2.0。你应该尝试更新它,也许这会解决你的问题。