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

有些文本无法在 `` 之间直接粘贴 #11387

Closed
TCOTC opened this issue May 14, 2024 · 7 comments
Closed

有些文本无法在 `` 之间直接粘贴 #11387

TCOTC opened this issue May 14, 2024 · 7 comments
Assignees

Comments

@TCOTC
Copy link
Contributor

TCOTC commented May 14, 2024

有些东西无法在 ` ` 之间直接粘贴:

default.webm
​标签

​

<span data-type="tag">&ZeroWidthSpace;标签</span>

<span>&ZeroWidthSpace;标签</span>
@TCOTC TCOTC changed the title 有些东西无法在 ` ` 之间直接粘贴 有些东西无法在 \ \ 之间直接粘贴 May 14, 2024
@TCOTC TCOTC changed the title 有些东西无法在 \ \ 之间直接粘贴 有些东西无法在 之间直接粘贴 May 14, 2024
@TCOTC TCOTC changed the title 有些东西无法在 之间直接粘贴 有些东西无法在 \ 之间直接粘贴 May 14, 2024
@TCOTC TCOTC changed the title 有些东西无法在 \ 之间直接粘贴 有些东西无法在 `` 之间直接粘贴 May 14, 2024
@88250 88250 self-assigned this May 14, 2024
@TCOTC TCOTC changed the title 有些东西无法在 `` 之间直接粘贴 有些文本无法在 `` 之间直接粘贴 May 15, 2024
@88250
Copy link
Member

88250 commented May 26, 2024

这是因为第一次形成 code 元素时需要做一些标记符/HTML 标签的剔除,否则会导致其他问题 #9805 ,形成 code 元素以后再粘贴就可以按 code 的内部语义处理了,不会剔除标记符/HTML 标签。

所以这个问题无法再改进了,感谢反馈。

@88250 88250 closed this as completed May 26, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented May 26, 2024

@88250 那文本 &ZeroWidthSpace; 和真正的零宽空格是没法区分的吗?我在段落块里粘贴 &ZeroWidthSpace; 的时候会转换为零宽空格,但手动输入 &ZeroWidthSpace; 就不会

@TCOTC
Copy link
Contributor Author

TCOTC commented May 26, 2024

第一次形成 code 元素时需要做一些标记符/HTML 标签的剔除

形成 code 元素以后再粘贴就可以按 code 的内部语义处理了

那能不能做到在粘贴的时候先形成 code 元素了再粘贴文本进去?

@TCOTC
Copy link
Contributor Author

TCOTC commented May 26, 2024

粘贴转义文本也还有点问题:

default.webm

@88250
Copy link
Member

88250 commented May 26, 2024 via email

@88250
Copy link
Member

88250 commented May 26, 2024 via email

@TCOTC
Copy link
Contributor Author

TCOTC commented May 28, 2024

第一次形成 code 元素时需要做一些标记符/HTML 标签的剔除

感觉好像有点不对劲,标记符/HTML 没法跟文本区分开吗?

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

2 participants