draft-js-plugins-utils

Plugin utilities for draft js

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
draft-js-plugins-utils
4,01792.0.35 years ago5 years agoMinified + gzip package size for draft-js-plugins-utils in KB

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