openlibhums / openlibhums/janeway
More options when copy-pasting formatted text
@joemull is already working on this.
Since May 30, 2024.
- Dominant language
- Python
- Stars
- 238
- Forks
- 97
- Avg merge
- 9d 1h
- Merged PRs (30d)
- 8
Description
Is your feature request related to a problem? Please describe.
With #3983 we introduced the TinyMCE text editor and added a modal that lets you clear all formatting when pasting from another app, like Word. This is usually better than keeping all the formatting.
But many users want something in the middle. They want to keep very basic formatting like italics, bolding, and hyperlinks. See https://github.com/BirkbeckCTP/janeway/issues/2282#issuecomment-1286758594 and https://github.com/BirkbeckCTP/janeway/issues/1481#issuecomment-1185419521.
Describe the solution you'd like
The option to keep some formatting. This could be achieved by using something like sanitize-html as @ajrbyers suggested in #3983.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.