Answer the question
In order to leave comments, you need to log in
How does formatBlock work in document.execCommand?
How does document.execCommand(formatBlock, false, 'h1') work? Why does it wrap the entire section of text in this tag, and not the selected one? How can I make the tag wrap only the selected text?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question