I’m facing some problems while using CodeMirror in ProseMirror
As shown by the pic（by Embeded CodeMirror）
Sometimes, when click outside the code_block node, the cursor shown by the dom was right but the editor selection was pointed at the end of the code_block content.
And the toolbar state is uncorrent.
Is there a way to fix this selection error?