For some unknown reason (probably an internal slate bug), the provided useFocused(); from slate-react is always false.
Instead of relying on this hook to determine if the editor is in focus, we check it ourselves.
I removed the hook for now since we only used it for the hyperlink modal
For some unknown reason (probably an internal slate bug), the provided
useFocused();
from slate-react is always false. Instead of relying on this hook to determine if the editor is in focus, we check it ourselves. I removed the hook for now since we only used it for the hyperlink modal