Comments (2)
I would do something pretty similar but one missing case in your demo is deleting. Also instead of updating class names directly, you could go with quill.updateContents()
to update the contents directly.
from quill.
@luin Thanks for the response, would you mind helping me understand how to use updateContents to achieve this? It seems pretty challenging to go from a tree of Blot nodes to deltas that apply on positions. IIUC the hard bit is that you have to construct a delta for each list item (which can be further nested) since each item is on a different line.
I'm happy to go read a bunch of code and figure it out but some pointers would be pretty helpful!
from quill.
Related Issues (20)
- Format toggled off after entering a newline HOT 2
- Accessibility issues to be addressed in the quill editor
- Font whitelist and clipboard.convert() HOT 2
- Table in 2.0.2 HOT 2
- Cannot read properties of undefined (reading 'register') HOT 2
- [Request][Help] need custom blot
- code997 HOT 1
- Quill image to e-mail body form as cid or Blob.
- Is there any way to find whether the text is copied from inside Quill or from other pages? HOT 4
- How do we replicate `replace` from Quill 1 in Quill 2?
- 1.3.7 with table support HOT 1
- Broken keyboard shortcuts on non-ASCII layout in Firefox
- Ctrl+A to select and copy text will missing html tag when only single line
- How to set the color of Toolbar Icon?
- Range Index bug at the first character/blot of each line HOT 2
- Quill editor toolbar issue with v2.0.2
- Key listener for Tab doesn't work in quill-mention and ReactQuill HOT 5
- Markdown support in quill
- Quill 2.0 Locales HOT 1
- Delta quill.getContents() attributs not connected to the right input
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quill.