Given I have a text like '''Foo''' ('''bar''') ping pong(this example)
When I set the cursor inside a triple apostrophe and hit [space]
Then I expect a space to be inserted
Right now nothing happens, and I get the error
TypeError: readyTokens[readyTokens.length] is undefined https://no.wikipedia.org/w/extensions/CodeMirror/resources/mode/mediawiki/mediawiki.js?96137 Line 928
This line is first statement after this test clause (readyTokens[ readyTokens.length ].pos++; )
if ( readyTokens.length > 0 ) { // it contains tickets before the point of rollback readyTokens[ readyTokens.length ].pos++; // add one apostrophe, next token will be italic (two apostrophes) mTokens = readyTokens; // for sending tokens till the point of rollback } else { // there are no tikets before the point of rollback
This failure will then halt the execution and further editing will be blocked. Due to this I'll set the priority as high. (Ie. the editor can't progress after this error.)