Jump to content

problems with javascript editor


blueman378

Recommended Posts

hi guys well im trying to use a javascript editor similar to the one on the forum, its working PERFECT in firefox however in internet explorer lets say you start out with:

 

lol

 

you then without selecting anything press a button eg bold you get (ignore the random brackets btw its a replacement for [])

lol{b}lol{\b}lol

 

you get the exact same result if you select it and press a button as well,

 

in firefox however if you simply press the button you will get

lol{b}{\b}

 

or if you select it you will get

{b}lol{\b}

 

please help me guys,

 

you can download the editor (like 42kb) here http://www.webspirited.com/edit.zip

if you dont have php change index.php to index.html

i would post the js code but its too long

 

thanks alot guys

Link to comment
https://forums.phpfreaks.com/topic/106138-problems-with-javascript-editor/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.