RichEditorView
RichEditorView copied to clipboard
What case does needsWorkAround solve?
I'm having a scrolling problem relates to needsWorkAround in RE.getRelativeCaretYPosition
. I'm wondering why we need that case because it seems still work ok for me if I take that out. Does anyone here know in which case we need to use that? Thanks.
+1
The code inside needsWorkAround needed in the case when the user creates an empty new line. The other part is used when the user pastes a few lines of texts, for example.
I believe needsWorkAround should be renamed to "startsEmptyLine" or something more meaningful.