123456789101112131415161718192021222324252627282930 |
- package tiptap
- // @snippet_begin(TipTapPackrSample)
- import (
- "embed"
- "github.com/qor5/web"
- )
- //go:embed tiptapjs/dist
- var box embed.FS
- func JSComponentsPack() web.ComponentsPack {
- v, err := box.ReadFile("tiptapjs/dist/tiptap.umd.min.js")
- if err != nil {
- panic(err)
- }
- return web.ComponentsPack(v)
- }
- func CSSComponentsPack() web.ComponentsPack {
- v, err := box.ReadFile("tiptapjs/dist/tiptap.css")
- if err != nil {
- panic(err)
- }
- return web.ComponentsPack(v)
- }
- // @snippet_end
|