Date: 9/8/2005
| Well, after a lot of poking around with HTML rich text controls I can say that it certainly wasn't the easy solution I was looking for. I've tried both the IE and Mozilla control and they both have show stopper issues.
IE
- Delete key doesn't work.
- Lots of weird duplicate p tags everywhere.
Mozilla
- Layout of iframes can't be made to fill remaining space. 100% width and height are broken in that they get there dimensions off the body element instead of the parent div element. Meaning I can't resize the edit area to the client part of the window.
- Bug #303829 means you can't implement popup dialogs in Mozilla.
- No way of reliably calling javascript through the ActiveX interface. Meaning that to save the edited HTML back into a DOM accessable field you have to implement ugly hacks like retasking onmouseout to do the work for you and then programatically move the mouse out of the window.
- It only works with the 11mb Mozilla ZIP release, not the installer version of Mozilla or Firefox or the Mozilla ActiveX installer. That sucks.
- No way to get the size of the content without scrollbars to resize the window to fit everything in.
So I have a "kinda" working solution with the Mozilla control but it still sucks in some parts. So I'm not keen to release it on unsuspecting users.
I have learnt some cool new things though:
|