RichEditor - Is there a way to make it scrollable?
I have a
RichEditor
and the text that it contains is extremely long (think: legal document). That means that if someone goes to edit the contents of that field, the editor box expands to fit the size of the text, rather than limit itself to, say, 15-20 lines, and then have an internal scroll bar just for the editor field.
Is there a way to force it to stay a certain size or number of lines with internal scrollbars so that if someone wants to use one of the editor buttons (e.g. Bold
) that they don't have to scroll their entire screen back up to the top to press the button, and then scroll their screen all the way back down to wherever they were working?4 Replies
Your best bet is going to be a custom theme where you can apply a max height to the content with overflow scroll and a sticky toolbar. But nothing out of the box.
Would a PR to make it configurable (obviously defaulting to the current behaviour) be considered?
I wouldn't mind investing the time to make it an option if it would be considered.
I wish I could answer that. But I know there’s currently a feature freeze in preparation for v4. But I can’t say that a PR wouldn’t be accepted. Not my call.
Fair enough. Will dig into it and see if it's a relatively easy thing to do. If so, will submit a PR. Otherwise, I'll just do the custom theme. Thanks for your help!