Skip to content

fix for creating new list items#48

Open
Leshkens wants to merge 1 commit into
editor-js:masterfrom
Leshkens:master
Open

fix for creating new list items#48
Leshkens wants to merge 1 commit into
editor-js:masterfrom
Leshkens:master

Conversation

@Leshkens
Copy link
Copy Markdown

@Leshkens Leshkens commented Sep 6, 2020

#27

@kWeb24
Copy link
Copy Markdown

kWeb24 commented Feb 5, 2021

This fix works in Firefox but not in Chrome. I found out that li elements must be contenteditable="true". I added this line at the end of _make() method:

if (tagName === 'li') el.setAttribute('contenteditable', true);

This did the trick but should rather be moved to the attributes parameter and set when the method is called.

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

Successfully merging this pull request may close these issues.

2 participants