mediaweb/silverstripe-tinymce4
最新稳定版本:1.1.8
Composer 安装命令:
composer require mediaweb/silverstripe-tinymce4
包简介
Replaces the default Silverstripe HTMLEditor (TinyMCE v3) with TinyMCE v4.
README 文档
README
Replaces the default Silverstripe HTMLEditor (TinyMCE v3) with TinyMCE v4.
Usage
- HtmlEditorConfig is replaced with CustomHtmlEditorConfig
- HtmlEditorField is replaced with CustomHtmlEditorField
When using this module, beware: using HTMLEditorField will probably break the admin. Replace all occurences with CustomHTMLEditorField.
There are two use cases:
- Using automatic scaffolding (scaffoldFormField):
private static $db = array(
'CustomContent' => 'CustomHTMLText'
)
- Using updateCMSFields or getCMSFields:
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->insertAfter(
CustomHTMLEditorField::create('CustomContent', 'Custom Content')->addExtraClass('stacked'),
'Content'
);
return $fields;
}
Note: Be sure to allow access to 'thirdparty/tinymce/tiny_mce_gzip.php'; a .htaccess file is added, some extra configuration is required when using Nginx.
统计信息
- 总下载量: 4.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-02-13