I create the simplest WYSIWYG editor, but in each browser generated other html code.
I use:
a.execCommand('useCSS', false, true);
a.execCommand('styleWithCSS', false, false);
For example:
Chrome generate unnecessary div when i use enter key...
IE generate <p>
tags when go to new line...
Firefox generate for me the best code, inserts old br:)
I must create styles for results, by it's too much differences.