2.0.3 • Published 6 years ago
draft-js-plugins-utils v2.0.3
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