microsoft / microsoft/roosterjs
Loss of custom styles
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
This is a example URL
Contributor guide
No contributing guide indexed for this repository
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.
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