Search code examples
cssxmlcodemirror

Codemirror cursor position offset


I'm using code mirror to display, highlight and edit xml in a web page but I am having a problem with the cursor position being offset from the insert position so that if you delete a character from where the blinking cursor is, a character before the one you would expect gets deleted instead. I am assuming its a css clash with my current page because it works well outside my page, but cant find the clash anywhere. Has anyone had similar issues or know what to do?


Solution

  • Further investigation shows that the page had padding set on all divs embedded in fieldsets which was the cause of the problem.