Skip to main content

Basic Marks

Includes the following plugins:

  • createBoldPlugin() for the bold mark
  • createItalicPlugin() for the italic mark
  • createUnderlinePlugin() for the underline mark
  • createStrikethroughPlugin() for the strikethrough mark
  • createSubscriptPlugin() for the subscript mark
  • createSuperscriptPlugin() for the superscript mark
  • createCodePlugin() for the code mark

Installation#

npm install @udecode/plate-basic-marks

Usage#

Live Editor
Result

Options#

export type HotkeyPlugin = {
/**
* Hotkeys to listen to trigger a plugin action.
*/
hotkey?: string | string[];
};
export interface ToggleMarkPlugin extends HotkeyPlugin {
/**
* Node properties to delete.
*/
clear?: string | string[];
}

Source Code#