Is there a way to prevent drag and drop text from outside editor if length of editor text with dragged text exceed max-length I have tried using handleDrop event, but it accepts the parameters (SelectionState, dataTransfer, isInternal) I tried to get text from SelectionState object, but couldn't succeed