nl_tokens: Returns content range that should be wrapped
pl_tokens: function getWrappingContentRange ( editor ) { if ( editor . somethingSelected ( ) ) { const sel = editor . listSelections ( ) . filter ( sel => sel . anchor !== sel . head ) [ 0 ] ; if ( sel ) { return comparePos ( sel . anchor , sel . <mask> ) < 0 ? { from : sel . anchor , to : sel . head } : { from : sel . head , to : sel . anchor } ; } } // Nothing selected, find parent HTML node and return range for its content return getTagRangeForPos ( editor , editor . getCursor ( ) ) ; }