i posted a thread the other day asking how i could find an replace certain text in a text area using javascript, in this thread. now what im trying to do is add a preview to whatever is replaced. using this script.

alone, they work perfectly but but i cant get it to work together... this is what i got so far

http://www.board-source.com/htmledit.php

if anyone could take the time to help me figure this out id really appreciate it