draft-js-plugins-utils
v2.0.3
Published
Plugin utilities for draft js
Downloads
25,868
Maintainers
Readme
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