Editor Module Name: EditorModule
Module Name: EditorModule
Displays collapsible content panels for presenting information in a limited amount of space.
Showcase
Properties
Name | Type | Default | Description | Options |
---|---|---|---|---|
color | string | basic | Changes the default color of header. | basic | primary | success | information | warning | danger | light | dark |
content | HTML String | null | Defines the content of editor. | HTML String |
height | string | 300px | Editor's height. | px | % | em |
toolbarConfig | Object - ToolbarConfig | null | The toolbar config object | Object of type toolbar config |
ToolbarConfig
font: { family: { show: boolean, tooltipText: string } size: { show: boolean, tooltipText: string } bold: { show: boolean, tooltipText: string } italic: { show: boolean, tooltipText: string } underline: { show: boolean, tooltipText: string } color: { show: boolean, tooltipText: string } highlight: { show: boolean, tooltipText: string } } alignment: { left: { show: boolean, tooltipText: string } center: { show: boolean, tooltipText: string } right: { show: boolean, tooltipText: string } justify: { show: boolean, tooltipText: string } } lists: { ordered: { show: boolean, tooltipText: string } unordered: { show: boolean, tooltipText: string } } others: { link: { show: boolean, tooltipText: string } imageLink: { show: boolean, tooltipText: string } quote: { show: boolean, tooltipText: string } }
Events
Name | Parameters | Description |
---|---|---|
saveContent | innerHTML : Inner HTML of content | Event emitted when pressed CTRL + S ( save ) while typing |