Skip to content

Fontsize whitelist #13

@JohnMusleh

Description

@JohnMusleh

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions