Thread:Kangaroopower/@comment-3508190-20120311180850/@comment-3508190-20120311222424

This is one of those things that will look really simple in the end while being far from it.

Here are a few scenarios:

...
 * finishing the post in the middle of the line
 * finishing the post after a return
 * finishing while indented
 * on the same line
 * with a return
 * finishing right after a block (like pre or blockquote)
 * finishing after switching form source mode to wysiwyg mode
 * finishing after switching form wysiwyg mode to source mode
 * finishing in the middle of a list

I want it to look "right" no matter what. The whole thing is only really useful when you do not ever have to pay attention to it. But the RTE is surprisingly complex...

If you do want to test it, you should use Firebug. With Firebug you don't have to actually submit the posts. Simply type Sine.add into the console.