Skip to content

Commit 2e976a3

Browse files
zurfyxacywatson
authored andcommitted
Tweet fallback to text on copy (#3088)
1 parent e8a8a52 commit 2e976a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/lexical-playground/src/nodes/TweetNode.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ export class TweetNode extends DecoratorBlockNode {
175175
exportDOM(): DOMExportOutput {
176176
const element = document.createElement('div');
177177
element.setAttribute('data-lexical-tweet-id', this.__id);
178+
const text = document.createTextNode(this.getTextContent());
179+
element.append(text);
178180
return {element};
179181
}
180182

0 commit comments

Comments
 (0)