fleather icon indicating copy to clipboard operation
fleather copied to clipboard

Next Line formatting

Open vinitk-aveosoft opened this issue 1 year ago • 1 comments

Question: Do we have any feature to continue the selected formatting to next line? Like we have selected "Bold", "Italic", "Underline" and I hit enter. in the next line it has been reset back to the original state. Is there any way to retain it?

vinitk-aveosoft avatar Feb 01 '24 05:02 vinitk-aveosoft

Yes it makes sense

The editor was designed to reset all inline format when inserting a new paragraph. In the meanwhile, you can try designing your own heuristic rule to implement the desired behavior (https://github.com/fleather-editor/fleather/blob/master/packages/parchment/lib/src/heuristics/insert_rules.dart)

We'd be very interested if you could share your findings

amantoux avatar Feb 01 '24 06:02 amantoux