Fixed cursor position when inserting a BBCode