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

Rendering is broken when span tag is contained within a cell using the table-merged-cell plugin #1059

Closed
seonim-ryu opened this issue Jun 24, 2020 · 0 comments

Comments

@seonim-ryu
Copy link
Member

Describe the bug

When using the table-merged-cell plugin, rendering is broken when the cell contains the <span> tag.

Cause

Cell data is managed by using the data-org-content attribute in the cell element when using the table-merged-cell plugin. The problem occurs when the value assigned to this attribute does not escape when the characters corresponding to the html entities are included.

To Reproduce

When using Editor Basic

  1. Add span tag to cell data in Markdown mode.
  2. Check the table in the preview area.

mde

When using the color-syntax plugin

  1. Some text in the cell is applied to the color syntax using the toolbar In WYSIWYG mode.
  2. Merge multiple cells.

2020-06-24 20-31-21 2020-06-24 20_32_09

Expected behavior

The <span> tag in the cell should render correctly.

Desktop (please complete the following information):

  • OS: All
  • Browser All
  • Version 1.1.0 ( table-merged-cell plugin)

Additional context

It occurs in all HTML entities such as ", & in addition to the <span> tag.

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

No branches or pull requests

1 participant