File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/MarkdownEditor/editor/plugins Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ const TableInlineNode = new Set([
9
9
'inline-katex' ,
10
10
'paragraph' ,
11
11
'footnoteDefinition' ,
12
+ 'table-row' ,
13
+ 'table-cell' ,
12
14
'media' ,
13
15
] ) ;
14
16
@@ -213,13 +215,16 @@ export const withMarkdown = (editor: Editor) => {
213
215
) {
214
216
if ( TableInlineNode . has ( operation . node . type ) || ! operation . node . type ) {
215
217
apply ( operation ) ;
218
+ return ;
216
219
}
217
220
if ( operation . node . type === 'card' ) {
218
221
const relativeNode = operation . node . children . at ( 1 ) ;
219
222
if ( TableInlineNode . has ( relativeNode . type ) ) {
220
223
apply ( operation ) ;
224
+ return ;
221
225
}
222
226
}
227
+ console . log ( 'parentNode' , operation . node ) ;
223
228
message . error ( '表格内部只支持行内节点!' ) ;
224
229
return ;
225
230
}
You can’t perform that action at this time.
0 commit comments