fix copying mentions as plain text

This commit is contained in:
Philipp Kühn
2021-01-19 20:27:51 +01:00
parent 80ec657053
commit 563f37d74b
11 changed files with 116 additions and 15 deletions

View File

@@ -88,6 +88,20 @@ export interface NodeConfig<Options = any, Commands = {}> extends Overwrite<Exte
}
) => DOMOutputSpec) | null,
/**
* Render Text
*/
renderText?: ((
this: {
options: Options,
editor: Editor,
type: NodeType,
},
props: {
node: ProseMirrorNode,
}
) => string) | null,
/**
* Add Attributes
*/
@@ -257,6 +271,7 @@ export class Node<Options = any, Commands = {}> {
isolating: null,
parseHTML: () => null,
renderHTML: null,
renderText: null,
addAttributes: () => ({}),
addNodeView: null,
onCreate: null,