origin commit a3f022d

This commit is contained in:
Paul Spenke
2023-07-02 21:38:11 +08:00
parent 5ef177ea39
commit d7610386e3
5 changed files with 121 additions and 73 deletions
@@ -356,6 +356,21 @@ class PageBuilder implements PageBuilderContract
return [];
}
/**
* Return this page's css in the format passed to GrapesJS.
*
* @param PageContract $page
* @return string
*/
public function getPageStyleCss(PageContract $page)
{
$data = $page->getBuilderData();
if (isset($data['css'])) {
return $data['css'];
}
return '';
}
/**
* Get or set custom css for customizing layout of the page builder.
*