Skip to content

Commit

Permalink
Fix copy+paste for CodeNode (facebook#2352)
Browse files Browse the repository at this point in the history
* Fix Code copy + paste

* Fix Code copy + paste

* Remove import order change
  • Loading branch information
tylerjbainbridge authored Jun 6, 2022
1 parent 524a4e5 commit 7f32d59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/lexical-code/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ export class CodeNode extends ElementNode {

static importDOM(): DOMConversionMap | null {
return {
code: (node: Node) => ({
conversion: convertPreElement,
priority: 0,
}),
div: (node: Node) => ({
conversion: convertDivElement,
priority: 1,
Expand Down

0 comments on commit 7f32d59

Please sign in to comment.