Remove P Tag from Ckeditor5
How to Remove Auto Paragraph from Ckeditor5. for Eg. Input => "This Is Body" in the Text Area Output => This Is Body Classiceditor. Create(Document...
how to remove auto paragraph from ckeditor5.
for eg.
input => "this is body" in the text area
output => <p>this is body</p>
ClassicEditor.create(document.querySelector("#editor"), {
autoParagraph: false,
enterMode: 2
})
.then((newEditor) => {
editor = newEditor;
})
.catch((error) => {
console.error(error);
});
i have tried to disabled autoParagraph and enterMode
1 Answer
maybe this Elegant way to change view schema in CKEditor5 can help you, that change strong to b