I have code mirror working in a dialog but the line numbers and gutter spacing seems to be over the first 5 characters of the text.
as soon as you start typing the number jump to where they should be but the gutter part still stays and overlaps the content as you type
This only happens on dialogs, when i add the code mirror to normal page (out side of a dialog) it works 100%.
And reason why this is happening. I have added ‘refresh: true’ to the option and still does not help.
Thanks
Was searching everywhere and could not find any answer.
Ended up using this and works perfectly.