Merge pull request #21873 from richardtagger/update-draftjs-applyentity

[draftjs] Update CharacterMetadata.applyEntity and Modifier.applyEntity
This commit is contained in:
Arthur Ozga
2017-12-04 17:31:14 -08:00
committed by GitHub
+2 -2
View File
@@ -797,7 +797,7 @@ declare namespace Draft {
class CharacterMetadata {
static applyStyle(record: CharacterMetadata, style: string): CharacterMetadata;
static removeStyle(record: CharacterMetadata, style: string): CharacterMetadata;
static applyEntity(record: CharacterMetadata, entityKey: string): CharacterMetadata;
static applyEntity(record: CharacterMetadata, entityKey: string | null): CharacterMetadata;
static applyEntity(record: CharacterMetadata): CharacterMetadata;
/**
* Use this function instead of the `CharacterMetadata` constructor.
@@ -894,7 +894,7 @@ declare namespace Draft {
static setBlockData(contentState: ContentState, selectionState: SelectionState, blockData: Immutable.Map<any, any>): ContentState;
static mergeBlockData(contentState: ContentState, selectionState: SelectionState, blockData: Immutable.Map<any, any>): ContentState;
static applyEntity(contentState: ContentState, selectionState: SelectionState, entityKey: string): ContentState;
static applyEntity(contentState: ContentState, selectionState: SelectionState, entityKey: string | null): ContentState;
}
class RichTextEditorUtil {