microsoft / microsoft/roosterjs

Bold formatting kept

Open
#3,303 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
190
Avg merge
1d 8h
Merged PRs (30d)
16

Description

Describe the bug

Hey, I'm one of the Proton Mail devs, we are using Rooster and we spotted an issue.

To Reproduce

Steps to reproduce the behavior:

  1. Open Rooster
  2. Write some content, put content in bold, red, 24px text size
  3. Go to the end of the line previously formated, add a few new lines
  4. On this last line, remove bold, red, go back to 14px text size
  5. Paste some unformated content

Expected behavior

I should see the pasted content in 14px with no bold/red.

Screenshots

Content is put in bold.

Image

It seems the b tag is kept even if I did click on the bold button to remove it.

Image

I reproduce similar issues on https://microsoft.github.io/roosterjs/index.html

Thanks for your help in advance :)

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Reproduce the issue in the Rooster demo at https://microsoft.github.io/roosterjs/index.html using the listed formatting and paste steps. Trace the paste and formatting handling, then verify that pasted content on the final line has 14px text with no bold or red formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.