fix copying mentions as plain text
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user