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

Lose All Characters After HTML Tags #2453

Closed
sxzz opened this issue May 8, 2023 · 3 comments · Fixed by #2463
Closed

Lose All Characters After HTML Tags #2453

sxzz opened this issue May 8, 2023 · 3 comments · Fixed by #2463
Assignees
Labels
fatal Bugs with highest priority help wanted mod:clipboard Module: related to clipboard type:bug Something isn't working
Milestone

Comments

@sxzz
Copy link
Member

sxzz commented May 8, 2023

  1. https://blocksuite-toeverything.vercel.app/?init=empty
  2. Type test <script> hello
  3. Copy the paragraph, and paste it to a rich text editor (like Typora, Notion, Tiptap, HeteroDoc)
  4. Only test left

And paste it into Twitter's editor, we'll get

test  hello</p><blocksuite style="display: none" data-type="blocksuite/page" data-clipboard="[{&quot;flavour&quot;:&quot;affine:paragraph&quot;,&quot;type&quot;:&quot;text&quot;,&quot;text&quot;:[{&quot;insert&quot;:&quot;test <script> hello&quot;}],&quot;children&quot;:[]}]"></blocksuite>
@affine-bot
Copy link

Hello! Thank you for filing an issue.
If this is a bug report, please include relevant logs to help us debug the problem.

@himself65 himself65 added the type:bug Something isn't working label May 8, 2023
@Flrande Flrande added mod:clipboard Module: related to clipboard help wanted labels May 8, 2023
@doodlewind doodlewind added the fatal Bugs with highest priority label May 8, 2023
@QiShaoXuan
Copy link
Contributor

The cause of this bug is that the copied information is not processed with tag-like text, causing an error in parsing the html when pasting

@QiShaoXuan
Copy link
Contributor

Fixed in #2463

@doodlewind doodlewind added this to the AFFiNE 0.6 milestone May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fatal Bugs with highest priority help wanted mod:clipboard Module: related to clipboard type:bug Something isn't working
Projects
Archived in project
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants