View Full Version : rich editor ie 5.5
manswide
25.07.2001, 16:15
I don't know how this forums runs in ie4 and ie5, but in ie5.5 the rich editor isn't what it could beŽ(I've heard from webfx that some kind of bug made the issue alot harder in 5.5). Anyhow, I took a look at the rich editor on hotmail and found it working very well in ie5.5, so I took a look at the code (the worst code I've seen in a long time, by the way), and I found out how they did it. As I said, I don't know how this works in earlier browsers, but it might be worth taking a look at (the design is lousy and I haven't made the functions perfectly properly yet), but it works fine for me:
http://hem.fyristorg.com/overlord/richeditor.html
Looks quite straight forward to do the formatting. But how can you access the properties if your're posting to an ASP script or something? Does using the execCommand() function actually change the HTML, or just the appearance?
<font face='Courier New'><font color=maroon>»» Dan (dan@pupius.net)
»» www.pupius.net || [url="http://www.dhtmlcentral.com/resources/redirect.asp?linkid=23"]www.endoflow.com[/url:kub0rs42tw]</font id=maroon></font id='Courier New'>
manswide
26.07.2001, 02:43
Yes, it does change the HTML, of course, the problem would be that the ASP (I guess) HTMLencodes the posts:
<hr>(just checking), and you'd have to stop the ASP from encoding the rich-formatted HTML. The best way might be to allow only the nessecary tags and use the classic VBscript replace-function to prevent the use of other tags.
vBulletin® v3.6.7, Copyright ©2000-2008, Jelsoft Enterprises Ltd.