microsoft / roosterjs

roosterjs is a framework-independent javascript rich text editor.
Other
1.18k stars 158 forks source link

Original Classes of Entity Wrapper are Threw Away #2751

Open Echo-az opened 3 months ago

Echo-az commented 3 months ago

Describe the bug The classes of entity wrapper are set to generateEntityClassNames. As a result, the original classes are threw away.

To Reproduce Steps to reproduce the behavior:

  1. Create an entity with customized classes
  2. Trigger model to dom

Expected behavior Original classed are kept

Device Information

Additional context I know we can workaround this problem by adding a child container div with classes we want. But I think throwing away original classes may not be reasonable.

Echo-az commented 3 months ago

Tried #2752 to fix this problem