ExecCommand offers a way to bold text inside iFrame, make it italic, underline it etc.
But it\'s missing an option to create or
I researched this problem a year ago and could not found any solution except using regex instead EC on nested tags. I developted my text editor without using ExecCommand.
I see that CKEditor was mentioned in one of previous comments :) So this is how we handle executing commands:
strong
and second b
or span
with inline style).