experiments: add a figure + figcaption node

This commit is contained in:
Hans Pagel
2021-06-01 16:58:50 +02:00
parent ad5dc2e194
commit 87611d812a
4 changed files with 203 additions and 0 deletions

View File

@@ -11,3 +11,4 @@ Congratulations! Youve found our playground with a list of experiments. Be aw
* [@tiptap/extension-collaboration-annotation](/experiments/collaboration-annotation)
* [@tiptap/extension-word-break](/experiments/word-break)
* [@tiptap/extension-trailing-node](/experiments/trailing-node)
* [@tiptap/extension-figure](/experiments/figure)

View File

@@ -0,0 +1,17 @@
# Figure
⚠️ Experiment
## Known issues
* Dragging should move the image, but duplicates it
## Tasks
* Add the caption as an optional parameter to the command
* Build commands to wrap an image into a figure + figcaption?
* Build commands to unrwap figure + figcaption to an image?
## Related links
* https://github.com/ueberdosis/tiptap/issues/573#issuecomment-730122427
* https://discuss.prosemirror.net/t/figure-and-editable-caption/462/5
<demo name="Experiments/Figure" />