codex-team / codex-team/editor.js
[Bug] Pasted HTML data includes unexpected HEAD data
Open
bug
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Describe a bug.
When pasted HTML data, unexpected HEAD data (``, `<meta>`, ...) are included.
Steps to reproduce:
1. Open PDF file with **[MacOS Preview](https://en.wikipedia.org/wiki/Preview_(macOS))**, and copy any text.
2. Paste it to Editorjs.
3. Unexpected text (eg. `test-file.pages`) is displayed.
Expected behavior:
Filter HEAD data from pasted HTML data.
Device, Browser, OS: Chrome, Mac OS, **[MacOS Preview](https://en.wikipedia.org/wiki/Preview_(macOS))**
Editor.js version: 2.19.0
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.