kid_am
11-06-2002, 04:51 AM
I am looking for a javascript code to replace a selected text (IE) in a textarea with the same text but with tags.
example: when i select a text "How are you" in a longer text, and i push a button, he place the new texttest . Finally, when i press the preview button, i must see a html file in the browser, it means the new text should be parsed... I'm looking on the net for code, but nothing found :confused: . In fact, i'm trying to make a very simple html editor.... thx
example: when i select a text "How are you" in a longer text, and i push a button, he place the new texttest . Finally, when i press the preview button, i must see a html file in the browser, it means the new text should be parsed... I'm looking on the net for code, but nothing found :confused: . In fact, i'm trying to make a very simple html editor.... thx