is there a cgi-file which functions as an html-editor or a script that puts html into a textarea for editing with a button to upload the edited text back to html

If not, any other ways to go about editing an html file online or if not that, is it easy to key in password and delete input options into an already existing simple add a link cgi form?