1.在app文件中添加 css
/* 所見即所得編輯器 */
extract($this->_get_theme());
$this->assign(‘build_editor’, $this->_build_editor(array(
‘name’ => ‘description’,
‘content_css’ => SITE_URL . 「/themes/store/{$template_name}/styles/{$style_name}」 . ‘/shop.css’, // for preview
))); html
2.在模板中引用 app
在模板頁的{include file=member.header.html}下添加{$build_editor} 編輯器
而後在要顯示編輯器的位置添加以下代碼: ui
<textarea name=」description」 id=」description」 style=」width:100%; height:350px;」>{$store.description|escape}</textarea> this
注意:textarea中的name要和app中build_editor的name同樣 htm