Open
Description
We are creating a whiteboard application. The slate editor is toggled from the readOnly on double click. As the cursor does not automatically place at the end when the readOnly mode is set to false, we place the cursor to the end of the text area through code.
onFocus={(e) => {
Transforms.select(editor, Editor.end(editor, []));
}}
Now we face an another problem due to this. The editor scrolls to the centre when this onFocus function is applied.