Some HTML editors replace the Textarea tag with many html codes (a frame with some buttons or links)

Like HTMLAREA you change a property of a textbox for example you set id="htmlare" and then your textbox will replace with editor automatically.

I wrote a simple WYSIWYG editor but I dont know How make it available to change teaxarea with my editor easy for users and without adding all HTML+JS code for each page.