Is there a way to detect users select all content?
问题 I'm implementing a plugin and have a use case need to detect when user select all content. I trying create a select all selection like this const selectAllSelection = editor.model.createSelection(editor.model.document.getRoot(), 'in') and compare with current model.document.selection but they are not the same. 回答1: Those selections are a bit different as the one created with createSelection() will start directly in <$root> . Real document selection will start inside the first <paragraph> .