redactor

package
v3.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSSComponentsPack

func CSSComponentsPack() web.ComponentsPack

func JSComponentsPack

func JSComponentsPack() web.ComponentsPack

Types

type Builder

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

func New

func New() (r *Builder)

func (*Builder) AppendChildren

func (b *Builder) AppendChildren(children ...h.HTMLComponent) (r *Builder)

func (*Builder) Attr

func (b *Builder) Attr(vs ...interface{}) (r *Builder)

func (*Builder) Children

func (b *Builder) Children(children ...h.HTMLComponent) (r *Builder)

func (*Builder) Class

func (b *Builder) Class(names ...string) (r *Builder)

func (*Builder) ClassIf

func (b *Builder) ClassIf(name string, add bool) (r *Builder)

func (*Builder) Config

func (b *Builder) Config(v Config) (r *Builder)

func (*Builder) MarshalHTML

func (b *Builder) MarshalHTML(ctx context.Context) (r []byte, err error)

func (*Builder) Placeholder

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

func (*Builder) PrependChildren

func (b *Builder) PrependChildren(children ...h.HTMLComponent) (r *Builder)

func (*Builder) RawConfig

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

func (*Builder) SetAttr

func (b *Builder) SetAttr(k string, v interface{})

func (*Builder) Value

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

type Config

type Config struct {
	Plugins []string `json:"plugins"`
}

Jump to

Keyboard shortcuts

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