Yoopta-Editor icon indicating copy to clipboard operation
Yoopta-Editor copied to clipboard

[FEATURE] Support inline color while export HTML

Open j7-dev opened this issue 1 year ago • 2 comments

Is this a unique feature?

  • [X] I have checked "open" AND "closed" issues and this is not a duplicate

Is your feature request related to a problem/unavailable functionality? Please describe.

When I use html.serialize to get HTML, the styles missing.

After checking source code, I found that this feature have NOT been implemented.

Proposed Solution

I've finished a simple solution in my fork branch: feat/support-inline-color

please check the diff here https://github.com/j7-dev/Yoopta-Editor/commit/2906860a6b8f1483e29ec6c3adacbd0b4d3e50a7

Screenshots

圖片

圖片

Do you want to work on this issue?

Yes

If "yes" to the above, please explain how you would technically implement this (issue will not be assigned if this is skipped)

I've made a small solution.

maybe someone can help me go through it

I might take there step

  1. move utils function (highlightToInlineCssAttribute, camelToKebab) to proper directory, any suggestion?
  2. Umm...code review and test!?

j7-dev avatar Jul 10 '24 10:07 j7-dev