I am working on a very simple text editor. I read about using designMode = 'On' applied to an iframe, and then I use this to create bold text:
nameOfiframe.document.execCommand('bold',false,null);
Even if it works, execCommand () uses b tags instead of strong to make bold text. I looked at some advanced text editor, all of them used strong instead of the b tag.
Is there an easy way for me to fix this? Or is execCommand () not suitable for use at all?
Thanks!
lawls source share