Paste Closing Tag Without Spawning An Opening P Tag In Contenteditable
I've got a contenteditable div:
I want new paragraphs to form when I press
Solution 1:
Editing occurs in a document object model (DOM). The HTML tags don't really exist in the editor. The HTML is parsed into a DOM. The HTML tags are produced again when the DOM is serialized. Therefore, improper HTML fragments cannot be pasted without consequences.
Post a Comment for "Paste Closing Tag Without Spawning An Opening P Tag In Contenteditable"