本书未发布
字段:可视化编辑器 WYSIWYG
文档尚未来得及翻译,欢迎以改进的方式提交译文。
Field Type - WYSIWYG
Usage
The wysiwyg
field type should be a TEXT type in your database.
'entry' => array(
'type' => 'wysiwyg',
'title' => 'Entry',
)
In the edit form, an admin user will be presented with a CKEditor WYSIWYG. When the field is saved to the database, the resulting HTML is stored in the TEXT field.
Since the WYSIWYG is fairly large, you may want to think about expanding your model's form width to something like 400
or 500
.
推荐文章: