editor-js / editor-js/list-legacy

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

Open
#80 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
58
Forks
68
PR merge metrics
No merged PRs in 30d

Description

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 `` as a `
` or convert `

  • ` to `

    /

    ` and `

  • ` to `

    /`, 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](https://user-images.githubusercontent.com/918780/208153588-3fbec555-7cae-4195-9042-461f2c806ebc.gif)

    Contributor guide

    No contributing guide indexed for this repository

    Research direction

    Reproduce the conversion from a selected list on the Editor.js homepage using the list plugin versions noted in the report. Start at the List Tool’s “convert to text” and “convert to heading” actions, then compare the resulting HTML with the expected per-item breaks or paragraph/heading elements. Done means converting selected list text no longer collapses all list-item content into one line.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    javascript
    Domain
    frontend
    Issue type
    Bug
    Difficulty
    3/5
    Estimated time
    1-2 days
    Activity status
    Stale
    Clarity
    Mostly clear
    Newbie friendliness
    45/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.