Remove P Tag from Ckeditor5

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest