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 #40 - Add ability to select multiple list items at a time for formatting or deletion #77

Conversation

jwnukoski
Copy link

Allows for multiple list items to be highlighted, by adding the contenteditable attribute to ol and ul items.
Issue: #40

| HTMLOListElement
| HTMLUListElement;
return Dom.make(tag, [this.CSS.wrapper, ...classes], {
contentEditable: (!this.readOnly).toString()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't just add contenteditable to the wrapper without preventing default events (and re-implementing them manually) because user can break a tool's DOM by pressing delete, for example.

@jwnukoski jwnukoski closed this Aug 7, 2024
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