Skip to content

Commit 08b5510

Browse files
authored
fix: for link / inline content pasting in table (#1181)
1 parent a9b36b1 commit 08b5510

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/core/src/blocks/TableBlockContent/TableBlockContent.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,17 @@ const TableParagraph = Node.create({
114114

115115
parseHTML() {
116116
return [
117+
{
118+
preserveWhitespace: "full",
119+
// set this rule as high priority so it takes precedence over the default paragraph rule,
120+
// but only if we're in the tableContent context
121+
priority: 210,
122+
context: "tableContent",
123+
tag: "p",
124+
getAttrs: (_element) => {
125+
return {};
126+
},
127+
},
117128
{
118129
tag: "p",
119130
getAttrs: (element) => {

0 commit comments

Comments
 (0)