Fix cursor position after textile command insert
Refactoring of cursor positioning
Merge pull request #1122 from opf/fix/2412_wiki_prompt_position

[Fix] 2412 wiki prompt position