You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am just working on implementing theme styles for the Gutenberg editor and found the following issue: the images get a max-width of 608 px (the default width of the Gutenberg blocks). But I increased the max width of the blocks to the maximum content width of my theme, which is over 608 pixels.
Now I could overwrite the inline style via CSS and !important but I think it would be nicer to have the ability of filtering the maxWidth value that is set here:
The comment above the settings constant says, »You can override any default settings when calling initializeEditor«, but I have no idea how to call that again without getting an error.
But that does not work (I did not really expect it either).
Is there already a way to filter those default settings? If not, would it be possible to add a simple PHP filter that filters the setting’s array that is created in the /lib/client-assets.php (
Hi,
I am just working on implementing theme styles for the Gutenberg editor and found the following issue: the images get a
max-width
of 608 px (the default width of the Gutenberg blocks). But I increased the max width of the blocks to the maximum content width of my theme, which is over 608 pixels.Now I could overwrite the inline style via CSS and
!important
but I think it would be nicer to have the ability of filtering themaxWidth
value that is set here:gutenberg/editor/components/provider/index.js
Line 51 in ee3a61c
The comment above the settings constant says, »You can override any default settings when calling initializeEditor«, but I have no idea how to call that again without getting an error.
I tried this:
But that does not work (I did not really expect it either).
Is there already a way to filter those default settings? If not, would it be possible to add a simple PHP filter that filters the setting’s array that is created in the
/lib/client-assets.php
(gutenberg/lib/client-assets.php
Line 910 in 8a4d644
Thanks,
Florian
The text was updated successfully, but these errors were encountered: