BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

feat: Custom inline equation using the BlockNote API

Open jkcs opened this issue 1 year ago • 4 comments

API Extension Changes:

  1. Pass the Tiptap node to props for inline content to access node attr, nodeSize, etc.
  2. Allow custom renderHTML implementation for inline content (in this case, to address copying issues)"

Link

  • #953
  • #741

jkcs avatar Aug 22 '24 01:08 jkcs

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ❌ Failed (Inspect) Aug 26, 2024 0:03am

vercel[bot] avatar Aug 22 '24 01:08 vercel[bot]

@jkcs is attempting to deploy a commit to the TypeCell Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 22 '24 01:08 vercel[bot]

Thanks! The UX of this looks great. I hope to dive into the code coming week. I'd like to research what API surface we'd need to add so this can be built using purely the BlockNote API (and not TipTap internals). Will keep you posted, but lmk in case you have suggestions for this!

YousefED avatar Aug 24 '24 09:08 YousefED

👍👍👍Extending isSelected is much better than before.

New bug: losing focus on input, need to keep isSelected as true.

Implement BlockNote API to add, remove, and edit inline content. For the tiptapApi, it requires 'pos'. Is there a way to operate based on the node rather than using 'pos' every time?

jkcs avatar Aug 27 '24 07:08 jkcs