Bold and styles button

Provide Bold/Italic/Strikethrough/Underline/Subscript/Superscript buttons and commands.

const editor = Jodit.make('#editor');
editor.execCommand('bold'); // or press Ctrl+B
editor.execCommand('italic'); // or press Ctrl+I
editor.execCommand('underline'); // or press Ctrl+U
editor.execCommand('strikethrough');
editor.execCommand('subscript');
editor.execCommand('superscript');

bold

bold(editor): void

Adds bold, strikethrough, underline and italic buttons to Jodit

Parameters

Name Type
editor IJodit

Returns

void

Defined in

jodit/src/plugins/bold/bold.ts:38