首页 WordPress函数大全 add_editor_style()

add_editor_style()

2020-05-02 / 2844阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

add_editor_style( array|string $stylesheet = 'editor-style.css' )

为自定义TinyMCE编辑器样式表添加回调。

描述

参数$ stylesheet是样式表的名称,相对于主题根目录。它还接受样式表数组。它是可选的,默认为'editor-style.css'。

此函数自动添加另一个带有-rtl前缀的样式表,例如editor-style-rtl.css。如果该文件不存在,则在将样式表添加到TinyMCE之前将其删除。如果将样式表数组传递给add_editor_style(),则RTL为>

参数

$stylesheet

(array|string)
(Optional)
Stylesheet name or array thereof, relative to theme root. Defaults to 'editor-style.css'

Default value: 'editor-style.css'

大家谈论
    我的见解