import { IconStrikethrough } from '../icons'; import { createSimpleMarkTool } from './simple-mark-tool'; /** * Strikethrough Tool * * Inline Toolbar Tool * * Style selected text with strikethrough. All range/wrap/unwrap mechanics * live in the shared mark engine; this file only declares the mark. */ export class StrikethroughInlineTool extends createSimpleMarkTool({ name: 'strikethrough', icon: IconStrikethrough, title: 'Strikethrough', titleKey: 'strikethrough', shortcut: 'CMD+SHIFT+S', spec: { tag: 's', // Legacy strikethrough tags: recognized as the same mark and whitelisted // for paste so / survive and normalize to canonical // (mirrors bold's ['b'] and italic's ['em']). aliasTags: ['del', 'strike'], }, }) {}