Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Tree.Edit to manage Merge and Split scenarios #662

Open
hackerwins opened this issue Nov 3, 2023 · 0 comments
Open

Enhance Tree.Edit to manage Merge and Split scenarios #662

hackerwins opened this issue Nov 3, 2023 · 0 comments
Labels
enhancement 🌟 New feature or request hard 🧑‍🔬 Difficult to deal with or require research sdk ⚒️

Comments

@hackerwins
Copy link
Member

Description:

Enhance Tree.Edit to manage Merge and Split scenarios

In text-based editors employing tree models, editing extends beyond the XML data structure and encompasses the ability to merge and split paragraphs.

When a user selects content spanning two paragraphs and presses the delete key, the second paragraph is removed, and its content is merged into the first paragraph, resulting in a seamless combination:

  • Original: <p>a|b</p><p>c|d</p>
  • Result: <p>ad</p>

Likewise, when a user positions the cursor within a paragraph and hits the enter key, the paragraph divides into two separate paragraphs:

  • Original: <p>a|b</p>
  • Result: <p>a</p><p>b</p>

To accommodate these features, we need to extend Tree.Edit to handle the merge and split scenarios.

Why:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌟 New feature or request hard 🧑‍🔬 Difficult to deal with or require research sdk ⚒️
Projects
Status: Backlog
Status: Todo
Development

No branches or pull requests

1 participant