wecenter发布页面里修改成和文章一样的编辑器

三叔
三叔 http://www.sanshu.cn

0 People liked this article · 1356 views

在管理后台新增页面的时候,我们打开的编辑器是textarea可以说十分不便。

feca08dfac399fccb840087205cae6bc.jpg


目前版本也没辙。只能自己手工改了。

找到/app/views/default/admin/page/publish.tpl.htm

找到 line66

注释掉代码

<!--<textarea class="form-control" name="contents"  rows="15"><?php echo $this->page_info['contents']; ?></textarea>-->

放上

<?php run_hook('editor',['name'=>'contents','cat'=>'page','attach_access_key'=>$this->attach_access_key,'value'=>$this->page_info['contents']]);?>


就可以了。

b5f483ea1094a26bce113456bbaecf1c.jpg

Published on 2021-03-29 13:57

Disclaimers:

This document is written by 三叔 Original published on WeCenter ,The copyright belongs to the author。

Log in,More exciting content waiting for you to find,Contribute wonderful answers,Participate in comment interaction

go Sign in! No accountgoregister