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

[Super Editor] - Code block newline insertion position is wrong #2505

Open
matthew-carroll opened this issue Jan 15, 2025 · 0 comments
Open
Labels
area_supereditor Pertains to SuperEditor bounty_junior time: 1 1hr or less

Comments

@matthew-carroll
Copy link
Contributor

Repro:

  • Create a code block with at least a few characters of content
  • Place the caret in the middle of the text
  • Insert a newline

Actual result:
The newline is inserted at the end of the code block

Expected result:
The newline should split the code block into two blocks at the caret position.

The root problem is in the code block newline insertion command where we should be using the caret node position, but instead we're using the end of the code block.

@matthew-carroll matthew-carroll added area_supereditor Pertains to SuperEditor bounty_junior time: 1 1hr or less labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area_supereditor Pertains to SuperEditor bounty_junior time: 1 1hr or less
Projects
None yet
Development

No branches or pull requests

1 participant