If we highlight some text in a paragraph block, depending on where you release the mouse button, the window.wp?.data?.select('core/block-editor').getSelectionEnd() call can not have the offset property in it.
For cursor state tracking, we need to assume the offset to max value in such a case.
If we highlight some text in a paragraph block, depending on where you release the mouse button, the
window.wp?.data?.select('core/block-editor').getSelectionEnd()call can not have the offset property in it.For cursor state tracking, we need to assume the
offsetto max value in such a case.