auto-indent !#*!!

Creating a Rich Text -editor, how can I make a new line automatically start
with the same left indent as the previous line?

Ted.