I've read this chain of postings ....
Having a WYSIWYG editor is a great benefit for setting up clients in their CMS so that some administrative assistant can enter basic code -- visually.
However, not being able to re-edit the code in the same editor kind of defeats the purpose of the editor. So some admin assistance has a table of information in a page. She needs to edit it. She opens up the HTML source, and all of the white space formatting is gone. No good. She knows from experience that if she just uses the visual interface to insert/modify code, that she is likely to get something "off, just a little" . Her boss will not be happy.
So, she copies the code out of the editor and pastes into a Dreamweaver blank HTML page. Her, she applies source formatting so she can make heads and tails out of the HTML soup she was looking at before. Ah, there's the row she needs to edit. Change that cell content, add a class here and there. Okay ... done. Now copy out of Dreamweaver and paste back into the WYSIWYG editor. Now save the CMS page.
You might as well just give them a text area box for HTML code and tell them to buy a copy of Dreamweaver. This is always the BIGGEST disappointment my clients express. If you could solve this problem, clients would buy your editor plugin to install in their CMS for $50 - $100 a pop.
I suppose I see some of the technical programs. But, it seems like you ought to be able to maintain two content areas. One area would be for HTML source code and spacing--where all white space is preserved. And the other area would be for visual display of the HTML from the HTML source code space.
Many of my clients would be happy to just "see" the what their code looks like even if they can't edit it visually. Usually, at some point, most corporate marketing admin assistance come to the realization that if they are going to get that page looking just right, they are going to have to know some HTML code. They might "hope" at first that they can do it visually, but they all come around eventually--too many overlapping tags that they just couldn't see. Or table rows get classed instead of table cells. The list of subtle ways to get it wrong just goes on and on until they finally resign themselves to learning some HTML and looking at the code. And then they realize their white space is not preserved. Every time they go back to looking at that page, it's HTML soup. Now they have to ask their boss to purchase an HTML editor.
I cannot tell you how many times I've been through this with clients. I'm telling you, if you solve this you'll make a small mint.