Paths to the .css
files containing styling that should be converted to inline styles (the order of provided items matters).
const exportInlineStylesConfig = {
stylesheets: [ './path/to/custom-style.css' ]
}
NOTE: If stylesheets
are not provided, the plugin will process only
the default editor content styles.
Default editor's content styles:
The default editor content styles
are processed thanks to the 'EDITOR_STYLES'
token, which is provided to the stylesheets
by default.
If you don't want them to be processed, you have to omit the token:
NOTE: The 'EDITOR_STYLES'
string is only supported in legacy custom builds with webpack or DLLs.
In other setups you always need to pass the stylesheets.
const exportInlineStylesConfig = {
stylesheets: [ './path/to/custom-editor-styles.css' ]
}
Multiple stylesheets: You can provide multiple stylesheets that will be processed in order:
const exportInlineStylesConfig = {
stylesheets: [
'./path/to/base-styles.css',
'./path/to/theme-styles.css',
'./path/to/custom-styles.css'
]
]
}
Defaults to [ 'EDITOR_STYLES' ]