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
{{ message }}
Repository navigation
Theme provided duotone preset is not displayed in the post editor #48586
the filter definitions do not load in the edit post iframe because they have to be manually added in the iframe’s rendering
in the site editor they are manually added but they come from this global styles hook which depends on a global styles provider which the edit post editor does not have/need
add these filters to a new key in the styles that we pass to the iframe via EditorStyles suggested by @youknowriad
the problem here is that we'll need to polyfill for a Safari bug which does not use SVGs if they're in the head of a HTML document, which complicates things
export a function that returns the SVG presets which is independent of any global styles hooks and providers, because all we need is the presets which we know without any special processing required, then use this function to add presets to post editor iframe.
I am workiing on (2) and will explore (1) with @ajlende once a fix exists.
Activity
draganescu commentedon Feb 28, 2023
Notes on investigating this issue:
draganescu commentedon Feb 28, 2023
Ways to fix this issue:
I am workiing on (2) and will explore (1) with @ajlende once a fix exists.