Format selected text | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Format selected text

Is there any option to select the text we want and format it like make it bold, italic, underline etc as like we see in the application sticky notes.

23rd Nov 2018, 7:17 PM
Praveen Soni
Praveen Soni - avatar
4 Answers
+ 1
Yes
24th Nov 2018, 2:38 AM
Gordon
Gordon - avatar
0
Gordon if there is a way then give me the solution because i tried alot for it but not getting the answer. Can you please solve this?
24th Nov 2018, 8:46 PM
Praveen Soni
Praveen Soni - avatar
0
As you said you have tried a lot, can you post your attempt?
25th Nov 2018, 2:18 AM
Gordon
Gordon - avatar
0
Gordon I got the selection but not able to format that getselection() can do for selection but its only giving me the selection part not innerHTML
25th Nov 2018, 7:16 PM
Praveen Soni
Praveen Soni - avatar