You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
484 B
TypeScript
14 lines
484 B
TypeScript
import { EasyMDE } from '../../easymde';
|
|
import { toggleBlock } from '../../utils/toggle-block';
|
|
import { IToolbarButtonOptions } from '../default-toolbar';
|
|
|
|
export const toggleStrikethrough = (editor: EasyMDE) =>
|
|
toggleBlock(editor.codemirror, editor.options.blockStyles.strikethrough);
|
|
|
|
export const toggleStrikethroughButton: IToolbarButtonOptions = {
|
|
action: toggleStrikethrough,
|
|
icon: 'fas fa-strikethrough',
|
|
name: 'strikethrough',
|
|
title: 'Strikethrough',
|
|
};
|