Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fontsize whitelist #13

Open
JohnMusleh opened this issue Nov 30, 2020 · 0 comments
Open

Fontsize whitelist #13

JohnMusleh opened this issue Nov 30, 2020 · 0 comments

Comments

@JohnMusleh
Copy link

Is there a way to whitelist font sizes?

I have a delta object like this:

... {
                "insert": "test",
                "attributes": {
                    "bold": true,
                    "size": "10px",
                    "color": "#ffffff"
                }
  }

I expect an output like this:

<span style="color: #ffffff; font-size:10px">test</span>

However, I'm getting:

<span style="color: #ffffff">test</span>

Any way I can solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant