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

Convert To (Text/Heading) Collapses <li> into a single line #80

Open
kanejamison opened this issue Dec 16, 2022 · 1 comment
Open

Convert To (Text/Heading) Collapses <li> into a single line #80

kanejamison opened this issue Dec 16, 2022 · 1 comment

Comments

@kanejamison
Copy link

When a user highlights text in a list and selects the "convert to text" or "convert to heading" options, the list collapses into a single line.

Expected behavior in most text editors would retain each </li> as a <br> or convert <li> to <p>/<h2> and </li> to </p>/</h2>, etc.

Here is a GIF replicating this on EditorJS homepage on Dec 16, 2022. Homepage says it is still using "version" : "2.26.0" but I'm seeing it on our local updated 2.26.4 version (1.8.0 on the list plugin) as well:
editorjs-list-collapse-on-convert-to2022-12-16 09-18-03 2022-12-16 09_19_16

@kanejamison
Copy link
Author

Actually it appears this was sort of addressed in a recent update, however it still acts differently than any other text editor.

It appears that it's now adding ". " to split the bullets as if they were sentences.
fixed-but-as-sentences-2022-12-16 09-53-25 2022-12-16 09_53_53

While this is slightly better than not adding any characters at all, users will still expect different behavior.

Additionally, if a user Tunes a single bullet or ordered list item, in other editors they would expect that single bullet to get converted to text, not the entire list. Not sure if that will require stronger support from the core plugin on bulk editing blocks (eg highlighting multiple lines of list items and tuning them all at once).

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