Closed rafalplonka closed 2 months ago
Thanks for filing this. I'm looking into it.
BTW, unrelated to this issue - we like to promote apps that are using Super Editor. Would you like us to feature your logo at flutterbountyhunters.com when you launch with Super Editor?
Thanks for filing this. I'm looking into it.
BTW, unrelated to this issue - we like to promote apps that are using Super Editor. Would you like us to feature your logo at flutterbountyhunters.com when you launch with Super Editor?
Please consider including my app journalit.app too. Thanks π
@thanhhai08sk happy to include you. Can you provide a URL where I can find a logo for your company? We display company logos in our website header at flutterbountyhunters.com
WRT this ticket, upon investigation, the root problem here is the retention of a mutable node. This is essentially the same type of problem that I just solved with regard to paste functionality with undo/redo: https://github.com/superlistapp/super_editor/pull/2190
I'll solve that same problem for the commands related to this ticket, too.
The broader solution is to convert all DocumentNode
s to immutable data structures, which is ongoing work here: https://github.com/superlistapp/super_editor/issues/2166
Thanks for filing this. I'm looking into it.
BTW, unrelated to this issue - we like to promote apps that are using Super Editor. Would you like us to feature your logo at flutterbountyhunters.com when you launch with Super Editor?
Confirming that the behaviour works correctly after the fix on the PR. π
Thank you for reaching out. We would be happy to have our logo on flutterbountyhunters.com. π We will let you know when we're live with the SuperEditor.
Package Version super_editor, GitHub, stable branch
User Info Knips (https://knips.io/) - We are working on replacing our Block Text Editor with the Super Editor (not released yet). The editor will be used to create posts on our platform.
To Reproduce Steps to reproduce the behavior:
Minimal Reproduction Code The bug is present in the demo app.
Actual behaviour The text gets duplicated after pressing CMD+Z when creating a text node after a non-text node.
It works correctly when pressing enter after the text node.
The issue is probably connected to the difference between these two scenarios in the common_editor_operations.dart file, method: insertBlockLevelNewline:
Expected behavior Regular undo behaviour
Platform Web
Flutter version [3.22.2](https://github.com/flutter/flutter/releases/tag/3.22.