dedecms新增行距

2021-08-20 15:09:56 字數 1484 閱讀 9087

新增行距:

1、行距外掛程式包

;2.解壓到ckeditor/plugins目錄下;

3、由於dedecms 5.7自己整合了乙個dedepage外掛程式

,用來新增ckeditor自定義外掛程式,在/include/ckeditor/

plugins/

dedepage資料夾下,開啟plugin.js檔案在最後面新增:

requires : [ 'lineheight' ],新增完之後的**如下:

// register a plugin named "dedepage".

(function()

});// alert('dedepage!');

// register the ******* button.

editor.ui.addbutton( 'mypage',

);// alert(editor.name);

},requires : [ 'fakeobjects' ],

requires : [ 'lineheight' ]

});})();

4、

修改/include/ckeditor/ckeditor.inc.php檔案

,在$*******['basic'] 的最後一行新增元素code,修改後**如下:

$*******['basic'] = array(

array( 'source','-','templates'),

array( 'cut','copy','paste','pastetext','pastefromword','-','print'),

array( 'undo','redo','-','find','replace','-','selectall','removeformat'),

array( 'showblocks'),array('image','flash','addon'),array('maximize'),'/',

array( 'bold','italic','underline','strike','-'),

array( 'numberedlist','bulletedlist','-','outdent','indent','blockquote'),

array( 'justifyleft','justifycenter','justifyright','justifyblock'),

array( 'table','horizontalrule','smiley','specialchar'),

array( 'link','unlink','anchor'),'/',

array( 'styles','format','font','fontsize'),

array( 'textcolor', 'bgcolor', 'mypage','multipic'),

array( 'lineheight')

);

為ckeditor編輯器新增行距功能

具體做法是新增外掛程式 在目錄 ckeditor plugins 下新增外掛程式目錄 lineheight 目錄 ckeditor plugins lineheight 下的檔案截圖如下 然後需要對 ckeditor config.js檔案進行修改,即新增行距外掛程式 config.extraplu...

MySQL使用變數新增行號 分組新增行號

drop table ifexists computer stu create table computer stu id int 11 notnull name varchar 20 default null score float default null primary key id engi...

JS動態新增行

序號維修保養專案 工時費用 序號更換零配件專案 單位單價 數量配件費用 jsp資料獲取 string itemname request.getparametervalues itemname string cost request.getparametervalues cost if itemnam...