mirror of https://github.com/artf/grapesjs.git
2 changed files with 27 additions and 10 deletions
@ -1,10 +0,0 @@ |
|||
export default { |
|||
stylePrefix: 'rte-', |
|||
|
|||
// If true, moves the toolbar below the element when the top canvas
|
|||
// edge is reached
|
|||
adjustToolbar: 1, |
|||
|
|||
// Default RTE actions
|
|||
actions: ['bold', 'italic', 'underline', 'strikethrough', 'link', 'wrap'], |
|||
}; |
|||
@ -0,0 +1,27 @@ |
|||
export interface RichTextEditorConfig { |
|||
/** |
|||
* Class name prefix for styles |
|||
* @default 'rte-' |
|||
*/ |
|||
stylePrefix?: string; |
|||
|
|||
/** |
|||
* If true, moves the toolbar below the element when the top canvas edge is reached. |
|||
* @default true |
|||
*/ |
|||
adjustToolbar?: boolean; |
|||
|
|||
/** |
|||
* Default RTE actions. |
|||
* @default ['bold', 'italic', 'underline', 'strikethrough', 'link', 'wrap'] |
|||
*/ |
|||
actions?: string[]; |
|||
} |
|||
|
|||
const config: RichTextEditorConfig = { |
|||
stylePrefix: 'rte-', |
|||
adjustToolbar: true, |
|||
actions: ['bold', 'italic', 'underline', 'strikethrough', 'link', 'wrap'], |
|||
}; |
|||
|
|||
export default config; |
|||
Loading…
Reference in new issue