Any way to support a checkbox style list?
See original GitHub issueHello, I’ve just started integrating your lib into my app and so far it has been the best option for a rich content editor in RN I have found, great job!
I’m wondering if there’s a way we can insert a “checkbox” style list, eg:
- another thing
- one more
- some item
I’ve tried adding my own button with a handler like:
this.editor.insertHTML('<input type="checkbox" />')
and it inserts it, but always at the current cursor position (makes sense) and it also leaves the cursor in a weird offset location after insertion.
Then I tried:
this.editor.insertHTML('<ul class="checkboxes"><li></li></ul>')
in hopes that i could just style that UL differently (which I think might work) but the problem with that approach is that it ends up highlighting the default “insertBulletList” editor button instead of my custom button.
Both my approaches seem hacky, so I was wondering if anyone had a more legitimate solution for something like this?
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (3 by maintainers)
Top GitHub Comments
Hey @stulip, hope you’re doing well! I just wanted to see if you saw my comment above, we’re really hoping to incorporate checklists into our project and it’s so close to perfect!
As mentioned above, we’re happy to help finance this feature as much as we can (we’re a startup of just three friends working from home, so we don’t have a ton but we want to help).
If you’re curious, we’re currently using this library in production (without checklists atm) here --> https://wribbn.com It’s available in the “Notes” section once you save an item to a list.
I’m very sorry, but I’m looking for some time recently to study and study.