markitup/1.x — pull request #20 by r3c (2013-01-04 16:46:09+00:00)
Title: Fixed default (placeHolder) selection after using a tag having either openBlockWith or closeBlockWith property

Hi,

thank you for this great library!

I believe there is an issue with tags using either "openBlockWith" or "closeBlockWith". If you don't select any text and apply such tag, carret is supposed to select placeholder text (or just move inside the openWith and closeWith tags if there is no placeholder), but indices are wrong when openBlockWith or closeBlockWith are used. This pull request should fix the issue.

Regards,
Remi