Skip to content

Hot to keep style attributes on save. #575

@bence-palkovics

Description

@bence-palkovics

Hi,
I'm trying to use the style attribute to store modifications like color or font-size change, however when I save the project, these attributes are erased. How could I keep these attributes on save?

Here is a code snippet, used in a custom tool:

SelectColor();
element._domElement.style.color = selectedColor;
element.addCSSClass(this.className);
callback(true);
return this.dispatchEditorEvent('tool-applied', toolDetail);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions