[PR #7045] [MERGED] feat: add option to paste plain text #7703

Closed
opened 2026-03-23 23:20:50 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7045
Author: @asjqkkkk
Created: 12/25/2024
Status: Merged
Merged: 12/26/2024
Merged by: @LucasXu0

Base: mainHead: fr/7023


📝 Commits (2)

  • cde7aab feat: add option to paste plain text
  • fabc1ca refactor: optimize the code

📊 Changes

7 files changed (+127 additions, -25 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/document/document_copy_and_paste_test.dart (+46 -4)
📝 frontend/appflowy_flutter/integration_test/desktop/document/document_find_menu_test.dart (+6 -6)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/context_menu/custom_context_menu.dart (+5 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/custom_paste_command.dart (+46 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/paste_from_plain_text.dart (+20 -13)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/shortcuts/command_shortcuts.dart (+2 -0)
📝 frontend/resources/translations/en.json (+2 -1)

📄 Description

To fix #7023

Feature Preview

  • add Paste as plain text item to ContextMenu
  • pasting the original Markdown data will automatically convert it

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/7045 **Author:** [@asjqkkkk](https://github.com/asjqkkkk) **Created:** 12/25/2024 **Status:** ✅ Merged **Merged:** 12/26/2024 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `fr/7023` --- ### 📝 Commits (2) - [`cde7aab`](https://github.com/AppFlowy-IO/AppFlowy/commit/cde7aabbfe885b5c5c4df463a29410809e051283) feat: add option to paste plain text - [`fabc1ca`](https://github.com/AppFlowy-IO/AppFlowy/commit/fabc1ca38d944e278e71b1716c971042154292b2) refactor: optimize the code ### 📊 Changes **7 files changed** (+127 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_copy_and_paste_test.dart` (+46 -4) 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_find_menu_test.dart` (+6 -6) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/context_menu/custom_context_menu.dart` (+5 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/custom_paste_command.dart` (+46 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/paste_from_plain_text.dart` (+20 -13) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/shortcuts/command_shortcuts.dart` (+2 -0) 📝 `frontend/resources/translations/en.json` (+2 -1) </details> ### 📄 Description To fix #7023 ### Feature Preview - add `Paste as plain text` item to ContextMenu - pasting the original Markdown data will automatically convert it #### PR Checklist - [x] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [x] I've listed at least one issue that this PR fixes in the description above. - [x] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [x] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:20:50 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#7703
No description provided.