PDA

View Full Version : simple html editor


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

kid_am
11-06-2002, 04:53 AM
the text "test" should be test...

friday
11-06-2002, 05:07 AM
Hi Kid_am,
Not sure what you're actually trying to do. Can you make yourself clearer?

kid_am
11-06-2002, 05:15 AM
Originally posted by friday
Hi Kid_am,
Not sure what you're actually trying to do. Can you make yourself clearer?

hey, i know you! you are my neighbour! Well, i try something like this edit window from the forum... but very basic, just simple text, and bold text....

DA Master
11-06-2002, 11:49 AM
Try searching all the JavaScript sites for your code:

http://www.javascriptkit.com
http://www.javafile.com
http://www.javascriptsource.com
http://www.javascriptgate.com
http://www.codebrain.com
http://www.javascript-page.com

These will keep you looking for some time. :cool: :D