An open API service indexing awesome lists of open source software.

https://github.com/oliverspeir/tiptap-custom-components-wip


https://github.com/oliverspeir/tiptap-custom-components-wip

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Custom tiptap component WIP

Overall idea is you store json from editor in a DB

- [src/lib/editor.ts](./src/lib/editor.ts)
- [src/lib/editorComponents/customComponent.ts](./src/lib/editorComponents/customComponent.ts)
- [src/components/Editor.astro](./src/components/Editor.astro)
- [src/components/Content.astro](./src/components/Content.astro)

Content is where the magic needs to happen, gotta import predefined components and replace with astro component... had an idea of how but I forgot it
- Probably will need some other way of generating the html

At the moment gotta painfully create customCompnent.ts, but ideally would make a way to automate this