https://github.com/oliverspeir/tiptap-custom-components-wip
https://github.com/oliverspeir/tiptap-custom-components-wip
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oliverspeir/tiptap-custom-components-wip
- Owner: OliverSpeir
- Created: 2025-01-07T03:32:25.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-08T08:54:23.000Z (4 months ago)
- Last Synced: 2025-01-24T04:48:12.861Z (3 months ago)
- Language: TypeScript
- Size: 232 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 htmlAt the moment gotta painfully create customCompnent.ts, but ideally would make a way to automate this