如何从ckeditor5中删除自动段落。
例如。
在文本区输入=> "this is body“
输出=> <p>this is body</p>
ClassicEditor.create(document.querySelector("#editor"), {
autoParagraph: false,
enterMode: 2
})
.then((newEditor) => {
editor = newEditor;
})
.catch((error) => {
console.error(error);
});我曾尝试禁用autoParagraph和enterMode
发布于 2021-07-12 00:10:50
也许这个Elegant way to change view schema in CKEditor5可以帮助您,将strong更改为b
https://stackoverflow.com/questions/66279556
复制相似问题