Skip to content

Commit

Permalink
Merge pull request #646 from qor5/fix-richeditor
Browse files Browse the repository at this point in the history
pagebuilder readd richeditor
  • Loading branch information
zhangshanwen authored Oct 14, 2024
2 parents d7328d1 + b953311 commit 4142817
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pagebuilder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"github.com/qor5/admin/v3/presets/actions"
"github.com/qor5/admin/v3/presets/gorm2op"
"github.com/qor5/admin/v3/publish"
"github.com/qor5/admin/v3/richeditor"
"github.com/qor5/admin/v3/seo"
"github.com/qor5/admin/v3/tiptap"
"github.com/qor5/admin/v3/utils"
Expand Down Expand Up @@ -344,6 +345,8 @@ func (b *Builder) installAsset(pb *presets.Builder) {
RegisterForModule(language.SimplifiedChinese, I18nPageBuilderKey, Messages_zh_CN).
RegisterForModule(language.Japanese, I18nPageBuilderKey, Messages_ja_JP)

pb.ExtraAsset("/redactor.js", "text/javascript", richeditor.JSComponentsPack())
pb.ExtraAsset("/redactor.css", "text/css", richeditor.CSSComponentsPack())
pb.ExtraAsset("/tiptap.css", "text/css", tiptap.ThemeGithubCSSComponentsPack())
}

Expand Down

0 comments on commit 4142817

Please sign in to comment.