Hi,
Say for example you decided to pasteHTML("<div>Hello World</div>"); when the editor is in HTML view. This works fine. When you switch to the Source view you will see your code <div>Hello World</div>. If you decided to stay in Source view and pasteHTML("<div>Hello World</div>"); it does not work correctly. It strips the html tags and inserts just Hello World.