Skip to content

Commit

Permalink
feature(editor-buttons): Add add image button
Browse files Browse the repository at this point in the history
  • Loading branch information
Raiper34 committed Aug 20, 2022
1 parent 7c60f19 commit 5f2af9d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export const LINK_INPUT: EditorInput =
export const UNLINK_BUTTON: EditorButton = {type: ToolbarItemType.Button, command: ExecCommand.unlink, icon: 'fas fa-unlink'};
export const FORE_COLOR: EditorColor =
{type: ToolbarItemType.Color, command: ExecCommand.foreColor, icon: 'fas fa-palette'};
export const IMAGE_INPUT: EditorInput =
{type: ToolbarItemType.Input, command: ExecCommand.insertImage, icon: 'fas fa-image', text: 'Add image'};

export const ST_BUTTONS: ToolbarItem[] = [
UNDO_BUTTON,
Expand Down Expand Up @@ -84,5 +86,6 @@ export const ST_BUTTONS: ToolbarItem[] = [
LINK_INPUT,
UNLINK_BUTTON,
SEPARATOR,
IMAGE_INPUT,
FORE_COLOR,
];

0 comments on commit 5f2af9d

Please sign in to comment.