microsoft / microsoft/roosterjs

Loss of custom styles

Open
#3,017 1 comment 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

Hi, there's a feature that allows you to add custom styles when selecting text. The problem is that when you select styled text and type directly, the style is lost. If you delete the content and type again, it works perfectly.

I pass a screenshot

Image

This is a example URL

https://codepen.io/alexbrines/pen/EaabpRx

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

Start by reproducing the issue with the linked CodePen: select styled text and type directly, then compare it with deleting the content before typing. Trace the custom-style handling for text selection and verify that direct typing preserves the selected style in both scenarios.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.