5.1.0 • Published 7 years ago
@slate-editor/italic-plugin v5.1.0
SlateJS italic plugin.
Installation
The @slate-editor/italic-plugin is available as an npm package.
yarn add @slate-editor/italic-pluginUsage
Here is a quick example to get you started:
import React from 'react'
import { SlateEditor, SlateToolbar, SlateContent } from 'slate-editor'
import { ItalicPlugin, ItalicButton } from '@slate-editor/italic-plugin'
const plugins = [
ItalicPlugin()
]
const SlateRichTextEditor = () => (
<SlateEditor plugins={plugins}>
<SlateToolbar>
<ItalicButton />
</SlateToolbar>
<SlateContent />
</SlateEditor>
)
export default SlateRichTextEditorKeyboard Shortcut
| OS | Shortcut |
|---|---|
⌘+i | |
ctrl+i |
API
| Name | Description |
|---|---|
| ItalicMark | Component that holds the html that will wrap the content with italic style. |
| ItalicKeyboardShortcut | Keyboard shortcut file that manipulates onKeyDown event inside SlateJS. |
| ItalicUtils | Generic file that holds the util common functions. |
| ItalicButton | Button component that have behaviour to wrap content with italic style. |
TODO
- Make keyboard shortcut accepts customization
5.1.0
7 years ago
5.0.0
7 years ago
5.0.0-alpha.9e6f4feb
8 years ago
5.0.0-alpha.f4219f70
8 years ago
5.0.0-alpha.03550d1c
8 years ago
5.0.0-alpha.c75189d0
8 years ago
5.0.0-alpha.19a19572
8 years ago
5.0.0-alpha.f2d763f7
8 years ago
5.0.0-alpha.f7181996
8 years ago
5.0.0-alpha.dbf50702
8 years ago