richeditor

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 11 Imported by: 2

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 added in v3.0.5

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

func (*RichEditorBuilder) ErrorMessages added in v3.0.5

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