Steps to replicate the issue (include links if applicable):
- Edit a page where CodeEditor is loaded, like a JS page
- Run the following in the web console: $('#wpTextbox1').textSelection('replaceSelection', 'foo')
What happens?:
The editor is left unchanged and an error is logged in the console.
What should have happened instead?:
The current selection should have been replaced by the given content.