Custom Content Block Typography.CSS - Package
Permalink
Hello,
Is there a way to link to a typography.css file for a custom content block?
I'm creating a custom content block that different users/groups work with and it contains different buttons available than the "advanced" or "office" versions of the site's default content block. It's in a package, which shouldn't make a difference I would think.
I can't get the custom content block to pick up any kind of typography.css when editing/adding. After updates, the text is correctly styled from the theme but not while editing/adding. It also lacks text styles that you would have with a typography.css file.
Thanks in advance!
Is there a way to link to a typography.css file for a custom content block?
I'm creating a custom content block that different users/groups work with and it contains different buttons available than the "advanced" or "office" versions of the site's default content block. It's in a package, which shouldn't make a difference I would think.
I can't get the custom content block to pick up any kind of typography.css when editing/adding. After updates, the text is correctly styled from the theme but not while editing/adding. It also lacks text styles that you would have with a typography.css file.
Thanks in advance!
Under
\concrete\blocks\content
Copy editor_config.php and paste it in the following directory
\blocks\YOUR BLOCKS NAME\elements
Open the editor_config file and locate line 19, which should read as:
Change this to:
Now go back to the main folder for your block.
Open the form_setup_html.php file,
The default code for one line may read like this as it did for mine:
Rewrite it as the following:
The editor should now find and use the typography.css file of your theme while also having the ability to change what buttons are available for users/groups in the editor_config file.
I know it's not a perfect solution, but it worked for me.