openlibhums / openlibhums/janeway

More options when copy-pasting formatted text

Open
#4,017 4 comments 0 reactions 1 assignee View on GitHub

@joemull is already working on this.

Since May 30, 2024.

new feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.