Morphfolia Code Log

Home | Site Map | Site Index
Subscribe To This Blog
Atom Feed
RSS 2.0 Feed
Tags
Bug Notice (5)  General Notice (8)  Major Release (3)  Minor Release (1)  Release Status (1) 
Recent Posts
A note on Slipage
v2.5.0.0 Released
2.5.0.0 Dev Complete
Bug 17619 - Update - Fixed
Bug 17619 - Update
Available Blogs
Morphfolia Code Log
Peruse Muse Infuse
X-Browser Support - Progress To Date
Posted at 9/02/2010 8:45:09 p.m. by AdrianK (208 days, 6 hours and 52 minutes ago)
Tagged under: General Notice

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.

 

Last Modified 3/06/2010 11:25:42 p.m. by AdrianK (adriank [at] morphological [dot] geek [dot] nz)