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

NcRichContenteditable pasting HTML alike content strips off text #3908

Closed
susnux opened this issue Mar 20, 2023 · 1 comment · Fixed by #4486
Closed

NcRichContenteditable pasting HTML alike content strips off text #3908

susnux opened this issue Mar 20, 2023 · 1 comment · Fixed by #4486
Labels
0. to triage bug Something isn't working feature: rich-contenteditable Related to the rich-contenteditable components

Comments

@susnux
Copy link
Contributor

susnux commented Mar 20, 2023

Maybe related to #3264 but even worse:

Pasting HTML alike content strips content instead of replacing it with the HTML entities,
For example pasting

```java
Test<Object> myMethod() {
}
```

Will result in:

```java
Test myMethod() {
}
```

image

@susnux susnux added bug Something isn't working feature: rich-contenteditable Related to the rich-contenteditable components 0. to triage labels Mar 20, 2023
@Antreesy
Copy link
Contributor

Antreesy commented Aug 30, 2023

Paste was solved with #3915, but rendering is broken:

  • at second NcRichContenteditable (not a big deal, unlikely there will be two components linked to the single data source)
  • inside multiline code block at NcRichText with markdown
Styleguide Talk app
image image

Full list of escaped characters is here: https://html.spec.whatwg.org/multipage/named-characters.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. to triage bug Something isn't working feature: rich-contenteditable Related to the rich-contenteditable components
Projects
None yet
2 participants