Ck-editor just appending to same list item instead of creating new list item when I shift+enter ?
How can I achieve that ?
Here is how I am instantiating it.
ClassicEditor.create(document.querySelector("textarea"), {
toolbar: {
items: [
"bold",
"italic"
]
},
})
.then((editor) => {
editor.model.document.on("change:data", (e) => {
console.log(editor.getData());
});
})
.catch((error) => {
console.error(error);
});