richeditor

package
v0.0.0-...-73c3907 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugins = []string{"alignment", "table", "video", "imageinsert"}

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

View Source
var PluginsCSS [][]byte
View Source
var PluginsJS [][]byte

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