@editora/font-family
v1.0.5
Published
Font family plugin for Editora
Maintainers
Readme
@editora/font-family
[!IMPORTANT] Live Website: https://editora-ecosystem.netlify.app/
Storybook: https://editora-ecosystem-storybook.netlify.app/
Changes the font of the selected text from a menu.
Installation
npm install @editora/font-familyOr the bundled plugins:
npm install @editora/pluginsUsage
import { FontFamilyPlugin } from "@editora/font-family";
// or: import { FontFamilyPlugin } from "@editora/plugins";
const plugins = [FontFamilyPlugin()];Command and shortcut
- Command:
setFontFamily(takes the font stack as its value, for example"Georgia, serif") - Toolbar item: Font Family, an icon menu
- Shortcut:
Mod-Shift-f
Fonts in the menu
Arial, Times New Roman, Courier New, Georgia, Verdana, Helvetica, Trebuchet MS and Impact. The font is applied to the selection as a font-family style on a span with the class rte-font-family.
Notes
- The menu works with the keyboard: Enter or an arrow key on the button opens it, the arrow keys, Home and End move, Enter chooses, Escape closes.
