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.
Click to show internal directories.
Click to hide internal directories.