Re: Re: DHTML browsers [was Accessibility]
"Jonathan Snook" <[email protected]>
| Newsgroups | gmane.comp.cms.cms-forum.general |
|---|---|
| Message-ID | <003e01c49a00$b70c7160$65fea8c0@cr815395a> |
The problem with WYSIWYG editing with the built in browser functionality is that neither Mozilla's Midas or IE's MSHTML produce clean code. I haven't seen someone put together an editor that didn't make use of these technologies while avoiding Active-X or Java. I've done a fair bit of development with MSHTML and you can capture paste and edit events to prevent certain things and then do a code cleanup on submit to enforce XHTML compliance, etc. The other option is to built a javascript-based and DOM-based editor that trapped keyboard events and simply modified the DOM directly, which is a lot of what you have to do with MSHTML anyways. Here's an example of client-side HTML to XHTML conversion: http://webfx.eae.net/dhtml/richedit/richedit2.html Jonathan