AppFlowy-IO / appflowy-editor

A highly customizable rich-text editor for Flutter. The AppFlowy Editor project for AppFlowy and beyond.
https://pub.dev/packages/appflowy_editor
Other
448 stars 188 forks source link

fix: insert the pasted nodes after current selection if they start with a non-delta node #908

Closed LucasXu0 closed 1 day ago

LucasXu0 commented 1 day ago

closes https://github.com/AppFlowy-IO/AppFlowy/issues/6440

If the pasted content starts with a non-delta block, insert the content below the current selection. Otherwise, keep the original logic.

codecov[bot] commented 1 day ago

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 72.04%. Comparing base (c5de9ed) to head (7bdbf94). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ervice/shortcuts/command/copy_paste_extension.dart 81.81% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #908 +/- ## ========================================== + Coverage 71.89% 72.04% +0.15% ========================================== Files 318 318 Lines 14955 14962 +7 ========================================== + Hits 10752 10780 +28 + Misses 4203 4182 -21 ``` | [Flag](https://app.codecov.io/gh/AppFlowy-IO/appflowy-editor/pull/908/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AppFlowy-IO) | Coverage Δ | | |---|---|---| | [](https://app.codecov.io/gh/AppFlowy-IO/appflowy-editor/pull/908/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AppFlowy-IO) | `72.04% <81.81%> (+0.15%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AppFlowy-IO#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.