I'm using contenteditable = true
and document.execCommand
to style the text that the user typed.
The user styles a text block with fill color, italic and bold fonts etc. And just like we do in MS Word, he needs a Copy Format button to copy all styling in a text block, and just go on some other text block, highlight and paste the same styling.
As I understand, there is no function in document.execCommand
that I can use. Do you know any idea about how to do this?