Documentation ¶
Index ¶
- type AlertStyle
- type AttachesStyle
- type Blocks
- type ChartText
- type ChecklistItem
- type ChecklistStyle
- type CodeStyle
- type EditorJS
- type EditorJSBlock
- type EditorJSDataAlert
- type EditorJSDataAnyButton
- type EditorJSDataAttaches
- type EditorJSDataChart
- type EditorJSDataChecklist
- type EditorJSDataCode
- type EditorJSDataEmbed
- type EditorJSDataHeader
- type EditorJSDataImage
- type EditorJSDataImageGallery
- type EditorJSDataLinkTool
- type EditorJSDataList
- type EditorJSDataParagraph
- type EditorJSDataQuote
- type EditorJSDataRaw
- type EditorJSDataTable
- type EditorJSDataWarning
- type EditorJSMethods
- type EmbedStyle
- type FileData
- type ImageStyle
- type LinkToolStyle
- type ListStyle
- type MetaData
- type MetaDataImage
- type NestedListItem
- type QuoteStyle
- type StyleMap
- type TableStyle
- type WarningStyle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertStyle ¶
type AttachesStyle ¶
type AttachesStyle struct { Link string `json:"link"` Container string `json:"container"` Row string `json:"row"` LeftColumn string `json:"leftColumn"` CenterColumn string `json:"centerColumn"` RightColumn string `json:"rightColumn"` Filename string `json:"filename"` Size string `json:"size"` LeftImage string `json:"leftImage"` RightImage string `json:"rightImage"` }
type Blocks ¶
type Blocks struct { Header map[string]string `json:"header"` Paragraph string `json:"paragraph"` Quote QuoteStyle `json:"quote"` Warning WarningStyle `json:"warning"` Delimiter string `json:"delimiter"` Alert AlertStyle `json:"alert"` List ListStyle `json:"list"` Checklist ChecklistStyle `json:"checklist"` Table TableStyle `json:"table"` AnyButton string `json:"anyButton"` Code CodeStyle `json:"code"` Raw CodeStyle `json:"raw"` Image ImageStyle `json:"image"` LinkTool LinkToolStyle `json:"linkTool"` Attaches AttachesStyle `json:"attaches"` Embed EmbedStyle `json:"embed"` }
type ChecklistItem ¶
type ChecklistStyle ¶
type EditorJS ¶
type EditorJS struct {
Blocks []EditorJSBlock `json:"blocks"`
}
type EditorJSBlock ¶
type EditorJSBlock struct { Type string `json:"type"` Data interface{} `json:"data"` }
type EditorJSDataAlert ¶
type EditorJSDataAnyButton ¶
type EditorJSDataAttaches ¶
type EditorJSDataChart ¶
type EditorJSDataChecklist ¶
type EditorJSDataChecklist struct {
Items []ChecklistItem `json:"items,omitempty"`
}
type EditorJSDataCode ¶
type EditorJSDataEmbed ¶
type EditorJSDataHeader ¶
type EditorJSDataImage ¶
type EditorJSDataImageGallery ¶
type EditorJSDataImageGallery struct { URLs []string `json:"urls,omitempty"` BkgMode bool `json:"bkgMode,omitempty"` LayoutDefault bool `json:"layoutDefault,omitempty"` LayoutHorizontal bool `json:"layoutHorizontal,omitempty"` LayoutSquare bool `json:"layoutSquare,omitempty"` LayoutWithGap bool `json:"layoutWithGap,omitempty"` LayoutWithFixedSize bool `json:"layoutWithFixedSize,omitempty"` }
type EditorJSDataLinkTool ¶
type EditorJSDataList ¶
type EditorJSDataList struct { Style string `json:"style,omitempty"` Items []interface{} `json:"items,omitempty"` }
type EditorJSDataParagraph ¶
type EditorJSDataQuote ¶
type EditorJSDataRaw ¶
type EditorJSDataRaw struct {
Html string `json:"html,omitempty"`
}
type EditorJSDataTable ¶
type EditorJSDataWarning ¶
type EditorJSMethods ¶
type EditorJSMethods interface { SetData(data interface{}) SetStyles(styles []string) SetResult(result string) SetScripts(scripts []string) LoadLibrary() CreatePage() string Separator() Header() Paragraph() Quote() Warning() Delimiter() Alert() List() Checklist() Table() AnyButton() Code() Raw() Image() LinkTool() Attaches() Embed() ImageGallery() }
type EmbedStyle ¶
type ImageStyle ¶
type LinkToolStyle ¶
type LinkToolStyle struct { Link string `json:"link"` Container string `json:"container"` Row string `json:"row"` LeftColumn string `json:"leftColumn"` RightColumn string `json:"rightColumn"` Title string `json:"title"` Description string `json:"description"` LinkDescription string `json:"linkDescription"` Image string `json:"image"` }
type MetaData ¶
type MetaData struct { Title string `json:"title,omitempty"` SiteName string `json:"site_name,omitempty"` Description string `json:"description,omitempty"` Image MetaDataImage `json:"image,omitempty"` }
type MetaDataImage ¶
type MetaDataImage struct {
URL string `json:"url,omitempty"`
}
type NestedListItem ¶
type NestedListItem struct { Content string `json:"content,omitempty"` Items []NestedListItem `json:"items,omitempty"` }
type QuoteStyle ¶
type TableStyle ¶
type WarningStyle ¶
Click to show internal directories.
Click to hide internal directories.