fix: Emojis and embeds cannot be copied to plain text clipboard (#3561)
This commit is contained in:
@@ -59,6 +59,7 @@ export default class Emoji extends Node {
|
||||
const text = document.createTextNode(`:${node.attrs["data-name"]}:`);
|
||||
return ["span", { class: "emoji" }, text];
|
||||
},
|
||||
toPlainText: (node) => nameToEmoji[node.attrs["data-name"]],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user