draft-js-plugins-utils
2.0.3 • Public • Published Draft js plugin utilities
Available methods
createLinkAtSelection
createLinkAtSelection(
editorState: EditorState,
url: string
) => EditorState
removeLinkAtSelection
removeLinkAtSelection(
editorState: EditorState,
) => EditorState
getCurrentEntityKey
getCurrentEntityKey(
editorState: EditorState,
) => DraftEntityKey
getCurrentEntity
getCurrentEntity(
editorState: EditorState,
) => DraftEntity
hasEntity
hasEntity(
editorState: EditorState,
entityType: DraftEntityType
) => boolean
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 2.0.3
1,937
Version History
- VersionDownloads (Last 7 Days)
- 2.0.3
1,937
- 2.0.2
4,160
Package Sidebar
Install
npm i draft-js-plugins-utils
Weekly Downloads