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

Issue with headings, lists #55

Open
acoyfellow opened this issue Mar 10, 2022 · 0 comments
Open

Issue with headings, lists #55

acoyfellow opened this issue Mar 10, 2022 · 0 comments

Comments

@acoyfellow
Copy link

acoyfellow commented Mar 10, 2022

Hi there, thank you again for all the hard work on this project.

An issue I'm running into seems consistent across browsers. I'm unsure if it's this library or document.execCommand.

Explanation:
Text above / before the selection gets edited, when I believe it shouldn't.

Reproduction:
Starting with the code: <h1>Headline</h1><div>two</div>

  1. Highlight "two"
  2. Click "H2". Expected Output: <h1>Headline</h1><h2>two</h2>
  3. Actual Output: <h2>Headline<br>two</h2>

this problem seems to happen on h1, h2, ol, ul

View it here:
https://svelte.dev/repl/1bda56e129be48d58fbd27bbfd4c5e03?version=3.46.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant