Don't attempt to use the cursor selection when it has length 0
Don't attempt to use the cursor selection when it has length 0

RTWYSIWYG-20
RTWYSIWYG-24

xwiki-labs/cryptpad,xwiki-labs/cryptpad,xwiki-labs/cryptpad