richeditor

package
v0.0.0-...-932f57c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const PluginImageInsert = "imageinsert"

Variables

View Source
var (
	Plugins    = []string{"alignment", "fontcolor", PluginImageInsert, "table", "video"}
	PluginsJS  [][]byte
	PluginsCSS [][]byte
)

how to add own plugins 1. load plugin jss,css to PluginsJS,PluginsCSS 2. add plugin names in Plugins array

Functions

func CSSComponentsPack

func CSSComponentsPack() web.ComponentsPack

func JSComponentsPack

func JSComponentsPack() web.ComponentsPack

Types

type RichEditorBuilder

type RichEditorBuilder struct {
	// contains filtered or unexported fields
}

func RichEditor

func RichEditor(db *gorm.DB, name string) (r *RichEditorBuilder)

func (*RichEditorBuilder) ImageDisabled

func (b *RichEditorBuilder) ImageDisabled() bool

func (*RichEditorBuilder) Label

func (b *RichEditorBuilder) Label(v string) (r *RichEditorBuilder)

func (*RichEditorBuilder) Placeholder

func (b *RichEditorBuilder) Placeholder(v string) (r *RichEditorBuilder)

func (*RichEditorBuilder) Plugins

func (b *RichEditorBuilder) Plugins(v []string) (r *RichEditorBuilder)

func (*RichEditorBuilder) RawConfig

func (b *RichEditorBuilder) RawConfig(v interface{}) (r *RichEditorBuilder)

Note: RawConfig overwrites Plugins

func (*RichEditorBuilder) SetImageDisabled

func (b *RichEditorBuilder) SetImageDisabled(imageDisabled bool) *RichEditorBuilder

func (*RichEditorBuilder) Value

func (b *RichEditorBuilder) Value(v string) (r *RichEditorBuilder)

func (*RichEditorBuilder) Write

func (b *RichEditorBuilder) Write(ctx *h.Context) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL