1. 程式人生 > >dedecms修改後臺編輯器引數GetEditor

dedecms修改後臺編輯器引數GetEditor

原文https://blog.csdn.net/forest_fire/article/details/50944874

dedecms通過include/helpers/util.helper.php


function GetEditor($fname, $fvalue, $nheight=”350″, $etype=”Basic”, $gtype=”print”, $isfullpage=”FALSE”)函式呼叫文字編輯器,

個個引數可參考該方法的註釋資訊,

*  獲取編輯器
 *
 * @param     string  $fname  表單名稱
 * @param     string  $fvalue 如果表單中有預設值,則填入預設值
 * @param     string  $nheight 高度
 * @param     string  $etype   編輯器型別
 * @param     string  $gtype   獲取型別
 * @param     string  $isfullpage   是否全屏
 * @return    string

修改文字編輯器上面工具欄圖示格式資訊,可以通過includes/ckeditor/ckeditor.inc.php 


圖集編輯器太太簡單,沒有插入分頁符 #p#副標題#e# 的功能

改下 dede/templets/album_add.htm  中查詢 <?php GetEditor("body","",450,"Diy"); ?>  換成<?php GetEditor("body","",450,"Basic"); ?> 就可以顯示分頁符的功能了。

dede/templets/album_edit.htm 也一樣換一下。