这是默认的wordpress add\\u editor\\u样式函数:
function add_editor_style( $stylesheet = \'editor-style.css\' ) {
add_theme_support( \'editor-style\' );
if ( ! is_admin() )
return;
global $editor_styles;
$editor_styles = (array) $editor_styles;
$stylesheet = (array) $stylesheet;
if ( is_rtl() ) {
$rtl_stylesheet = str_replace(\'.css\', \'-rtl.css\', $stylesheet[0]);
$stylesheet[] = $rtl_stylesheet;
}
$editor_styles = array_merge( $editor_styles, $stylesheet );
}
如你所见if ( ! is_admin() ) return;
是否存在,基本上我们无法向前端wp\\U编辑器添加自定义样式。。什么是合适的解决方案?