There is a text with formatting: " TEST ". I get the selected text using $(element).summernote('createRange'); Gives: "TEST" without formatting. How can I get the same text, but only with formatting?

    1 answer 1

    Then you need to take not text, but HTML.

     $(element).html(); 
    • you need to take the selected text, and not all of the editor - Samar