For those of you who haven't tried it, writing a true X-browser supported WYSIWYG HTML Editor is not a trivial task, and only one I would recommend if you have a very high pain threshold or a demented love for JavaScript. I've (for better or worse) been persevering with my own editor, although I'm not entirely sure why. It is 'fun' to a certain extent.
Anyway, the 'official' line is that I'm going to finish up getting the editor to a basically usable state across most browsers and provide options for using alternative editors; at this stage those will be WMD and TinyMCE.
To track my current progress (as will be released in 2.4.2.0) see Cross-Browser Compatibility.
As an example of how perverted the whole issue is, check this out: if you give the editor focus (remember it's just a <DIV> with CONTENTEDITABLE="true") and type in 'aaa' <enter> 'bbb' <enter> 'ccc' you get the following:
In IE7 we get: <P>aaa</P>
<P>bbb</P>
<P>ccc</P>
In Firefox 3.0.8 we get: aaa<br>bbb<br>ccc<br>
and finally in both Chrome 4 and Safari 3.2.1 we get: aaa<div>bbb</div><div>ccc</div>
At least IE and Firefox are consistent - in that they treat all three lines the same, with Chrome and Safari the first line isn't wrapped in an element at all while the other are. I can't comment on how all this stacks up aganist the HTML spec's - I can't say I care that much.
|