I i'm trying to write a simple code editor.
I have some buttons on toolbars which when clicked inserts code on the Editor.
e.g: I click the Bold Button------>Editor shows <b></b>
I need the cursor to go between the tags.
e.g: <b>cursor here</b> and so on with other tags.