富文本编辑器(CKEditor)
CKEditor是全球最优秀的网页在线文字编辑器之一,因其惊人的性能与可扩展性被运用于呆错后台管理框架。
Ckeditor模板调用示例
{:DcBuildForm([ 'name' => 'ckeditor_index_index', 'class' => 'bg-white py-3', 'action' => DcUrl('ckeditor/index/index'), 'method' => 'post', 'submit' => lang('submit'), 'reset' => lang('reset'), 'close' => false, 'disabled' => false, 'ajax' => false, 'callback' => false, 'data' => false, 'items' => [ [ 'type' => 'editor', 'name' => 'editor', 'id' => 'editor', 'value' => '呆错(DaiCuo)是一款基于ThinkPHP、Bootstrap、Jquery的极速后台开发框架'), 'widget' => '100%', 'height' => '400px', 'autofocus' => false, 'readonly' => false, 'disabled' => false, 'required' => true, 'class' => 'row form-group', 'class_left' => 'col-12', 'class_right' => 'col-12', ] ] ])}
Ckeditor安全输出
{:DcEditor($string)}
{:DcHtml($string)}
{:DcStrip($string)}
呆错(DaiCuo)是一款基于ThinkPHP、Bootstrap、Jquery的极速后台开发框架