Text Editing Possible?

I've got a project idea based on a text editor for the user, and I'm hoping someone has a sample source file for a basic text editor to start with, or can point me in the right direction how to begin.
Thanks.
Thanks.
Comments
http://gamesalad.com/game/play/34752
Editing one word, maybe ok, but there is no way to make a text editor with GS 0.89!
There is no arrays and any string funtion can use!