editor-js / editor-js/list-legacy

Is there a way to set the first number of an ordered list?

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

Description

Im thinking in some way to set the first element in an ordered list, this is the current behaviour:
1. first element
2. second element
3. third element
(I want an image, code block or whatever and continue my list with number 4 however if I insert a new list Im forced to continue with number 1)
1. fourth element
2. fith element
....
....

I think will be a good idea to have an input in the Block Settings box where will be possible to type the first element of the list so the following will be possible:

1. first element
2. second element
3. third element
(I want an image, code block or whatever and continue my list with number 4 however if I insert a new list Im forced to continue with number 1)
4. fourth element
5. fith element
(another image or something)
6. ....
7. .....

If is possible right now forget about this, however after reading documentation and viewing some examples "first element of an ordered list" is not supported, I was thinking to extend this class (List component) and have this behaviour in some way only for me but at the last page of the official documentation I see that is possible contribute and commit the changes, I think this last option will be much better. what do you think?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the documentation and examples for the List component, then inspect how the Block Settings box configures ordered lists. Verify whether the current component supports a starting number and identify the relevant entry point. Done means users can set an ordered list's first number and continue numbering across separated list blocks.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.