You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to apply formatting to portions of editor text parameterized by RangeSelections? If so, what is a simple way to do so?
I am trying to implement a basic comment system where I will create a data structure which maps RangeSelections to comment data. This means I would load the comment data and the editor separately, and would need to apply highlight formatting to the editor based on the comment data. I am roughly following the separate data structure pattern described in #1839.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to apply formatting to portions of editor text parameterized by
RangeSelection
s? If so, what is a simple way to do so?I am trying to implement a basic comment system where I will create a data structure which maps
RangeSelection
s to comment data. This means I would load the comment data and the editor separately, and would need to apply highlight formatting to the editor based on the comment data. I am roughly following the separate data structure pattern described in #1839.Thanks so much!
Beta Was this translation helpful? Give feedback.
All reactions