The 2017 wikitext editor implements the jquery.textSelection API so it can be transparently substituted in for WikiEditor.
- Launch the 2017 editor
- Run this in the console: $( '#wpTextbox1' ).textSelection( 'setContents', 'a')
The output should be a single line of text saying a
Instead, it outputs two lines, an a followed by a newline.
Ideally, textSelection('setContents') should result in textSelection('getContents') returning the exact original input.
