The edittext control is very limited, it doesn't really live up to its name. It would be hopeless to attempt to do an editor in ScriptUI.
If i have time i try to do this using single char in a panel
using the new html-based panels might be easier than trying to fake it using scriptUI
Thank's Vamitul but in this moment i must use INDesign 6