richeditor

package
v3.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Plugins    = []string{"alignment", "table", "video", "imageinsert"}
	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) Disabled

func (b *RichEditorBuilder) Disabled(disabled bool) (r *RichEditorBuilder)

func (*RichEditorBuilder) ErrorMessages

func (b *RichEditorBuilder) ErrorMessages(errMsgs ...string) (r *RichEditorBuilder)

func (*RichEditorBuilder) Label

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

func (*RichEditorBuilder) MarshalHTML

func (b *RichEditorBuilder) MarshalHTML(ctx context.Context) ([]byte, error)

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) Value

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

Jump to

Keyboard shortcuts

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