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

Hot to keep style attributes on save. #575

Open
bence-palkovics opened this issue May 30, 2022 · 0 comments
Open

Hot to keep style attributes on save. #575

bence-palkovics opened this issue May 30, 2022 · 0 comments

Comments

@bence-palkovics
Copy link

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);
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