Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown format empty table validation failure #19

Open
qsx9527 opened this issue Mar 6, 2024 · 2 comments
Open

Markdown format empty table validation failure #19

qsx9527 opened this issue Mar 6, 2024 · 2 comments

Comments

@qsx9527
Copy link

qsx9527 commented Mar 6, 2024

|  |  |
| --- | --- |
|  |  |

1
| 1 |  |
| --- | --- |
|  |  |

The above example raises the following error:
输入图片说明

error: Uncaught (in promise) RangeError: Invalid content for node tableHeader: <>

he following example is normal.

| 1 |  |
| --- | --- |
|  |  |

1

@yangfuhai

@qsx9527 qsx9527 changed the title Markdown format empty table validation failure (Markdown空表格校验不通过) Markdown format empty table validation failure Mar 6, 2024
@qsx9527
Copy link
Author

qsx9527 commented Mar 6, 2024

当编辑器里的内容为

| 序号 | 其他其他 |
| ---- | -------- |
| 1    |          |
| 2    |          |
| 3    |          |
| 4    |          |

的时候,api方法 getMarkdown()会报错,提示此处c为null
截图_选择区域_20240306161659

@qsx9527
Copy link
Author

qsx9527 commented Apr 28, 2024

这种方式就可以☺

setContent(content: string) {
// this.focus().clear().insert(content);
this.focus().clear().innerEditor.commands.setContent(content);
return this;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant