I've been cracking my head open on how to change the code a bit. So when you toggle, it also toggle te text from "rte text" to html code.
I got it to toggle the rte off while it showed the html code with this line of code.
editorInstance.EditorWindow.parent.FCK.SwitchEditMode();
the problem with this line is, that you can't get the fckeditor toggled on again.
I got it to toggle the rte off while it showed the html code with this line of code.
editorInstance.EditorWindow.parent.FCK.SwitchEditMode();
the problem with this line is, that you can't get the fckeditor toggled on again.