[wp-hackers] Replacing TinyMCE with Xinha

Denis de Bernardy denis at semiologic.com
Thu Nov 30 00:24:33 GMT 2006


> Matt Mullenweg:
>
> I'm not religiously tied to TinyMCE, but Xinha was pretty 
> fragile in my 
> playing with it, and overall the codebase seems much less mature. We 
> have good upstream support from the MCE guys, good repeatable bug 
> reports (Denis' isn't) usually get fixed.

Sure they are. Send it to whoever is maintaining TinyMCE, he'll readily
reproduce them. If you need anything more specific, though:

If I recall correctly, weird things sprout when you hit the Return key
several times fast enough. Likely due to the way the script manages <p> and
<br> tags, i.e. we've got concurrent calls to the function when users type
too fast, and they produce weird output. The same occurs for other combos,
but this one was the most obvious.

I haven't the slightest clue why the divs come up exactly, but it should be
obvious to whoever created the validation script that, given the reported
bug, empty <div> tags should be corrected as <div></div> rather than plain
<div />.

For the front page bug, paste junk, e.g.:

<html><head><title>yada</title></head><body>yada</body></html>

And see TinyMCE accept the above unchanged instead of grabbing the part in
the body.

Lastly, I don't paste from Word, but a few of my customers certainly do.
They and others expect it to work because it's "bloody obvious" to them that
a list gets formatted as a list no matter where you paste it to or from.
Grab a few lists, tables, indents, etc. from Word97, paste in FCKEditor, it
almost always works. Do the same in TinyMCE, and you almost always need to
edit the resulting html source code. In particular, to remove <div />, <p />
and <script /> tags.

Denis



More information about the wp-hackers mailing list