Inline Style Pages doesn't work #5643
Unanswered
JoanCodinachUoc
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@artf Please in case that is not possible you can say it, so i don't waste time. Thanks |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi i use pages and ckeditor in grapesjs. The ckeditor includes inline css, for example
<div style="text-align: center;">Text</div>.
When i open a template i want load the code with the pages. The problem comes when i create the pages.const actualPage: Page = this.editor.Pages.add({ component: page }) as Page;
The problem is that the html code (variable page) has inline css (
<div style="text-align: center;">Text</div>.
),and this css is deleted. I think the component attribute only supports html. What is the solution in order the css doesn't dissapear. I can't put the style in Pages because is inline. It would be nice that the component attribute works like setComponents function, there it works inline style. Any solution? @artfThank you
Beta Was this translation helpful? Give feedback.
All reactions