allow arbitrary attrs on DecorationAttrs (#35574)

This commit is contained in:
Jerome Indefenzo 2019-05-21 01:21:57 +08:00 committed by Ryan Cavanaugh
parent 2845af6bbc
commit cf44e8d573

View File

@ -128,6 +128,11 @@ export interface DecorationAttrs {
* this type (and the other attributes are applied to this element).
*/
nodeName?: string | null;
/**
* Specify additional attrs that will be mapped directly to the
* target node's DOM attributes.
*/
[key: string]: string | null | undefined;
}
/**
* A collection of [decorations](#view.Decoration), organized in