How to get the number of lines in the editor ?? #2615
Unanswered
ZooMbix-hub
asked this question in
Q&A
Replies: 1 comment
-
If you mean the number of visual lines (affected by the number of times each paragraph wraps), this cannot be calculated from the data alone, and must be determined with reference to the rendered DOM. For each Slate node whose number of lines you want to count, you can use a solution like this one. To get each such Slate node, you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to get the current number of lines in the editor to hang styles. How can I get the number of lines in the editor ??
Beta Was this translation helpful? Give feedback.
All reactions