redactor

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: 4 Imported by: 0

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

func (*Builder) Write

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

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