Why use "getActiveEditor" and not "getEditor" ? #58
Answered
by
umaranis
AxelBriche
asked this question in
Q&A
-
Why use "getActiveEditor" and not "getEditor"? |
Beta Was this translation helpful? Give feedback.
Answered by
umaranis
Aug 12, 2023
Replies: 1 comment
-
Hi @AxelBriche , |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
umaranis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @AxelBriche ,
Because we can have nested editors in lexical.
getActiveEditor
gives the currently active editor which may not be the root editor.