microsoft / microsoft/roosterjs

Custom style css

Open
#3,123 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

Hello,
I'm testing CSS style customization; you can see an example in issue #3017 . It turns out that this approach adds styles to the selected segment. This makes the last style declared on the page the dominant one. I would like to insert a with the corresponding class every time a style is selected. This will ensure that regardless of the style declaration on the page, the last one you inserted prevails. Of course, there must be the option to remove the style when it's selected again. How could I do this?

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

No file, test, or entry point is named. Start by reviewing the approach in issue #3017 and locating the existing style-selection handling; done means selected styles can be applied with the requested span/class behavior and removed when selected again.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.