contenteditable

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// True Element content is editable. Users can modify text, add formatting, and interact
	// with content as if it were a text editor. Supports rich text editing.
	True = ContentEditable("true")

	// False Element content is not editable (default). Content is read-only and users cannot
	// modify it directly through the interface.
	False = ContentEditable("false")

	// PlaintextOnly Element content is editable but only as plain text. Rich formatting is stripped
	// and only plain text editing is allowed, preventing HTML injection.
	PlaintextOnly = ContentEditable("plaintext-only")
)

Variables for ContentEditable values

Functions

This section is empty.

Types

type ContentEditable

type ContentEditable []byte

ContentEditable Controls whether element content can be edited by the user. Enables in-place editing functionality and rich text editing capabilities within web pages.

func Custom

func Custom(value string) ContentEditable

Custom allows setting a custom ContentEditable value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.

Jump to

Keyboard shortcuts

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