react-codemirror2
react-codemirror2 copied to clipboard
'around' option in replaceSelection does not work correctly.
If I replace selection like below in original codemirror, new text are selected. But in react-codemirror2, wrong text are selected.
doc.replaceSelection('**' + text + '**', 'around');