修改了一下ckeditor编辑器的配置文件如下:
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For complete reference see:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
config.toolbar = 'Full';
config.toolbar_Full = [
//'FontSize','RemoveFormat'
['Cleanup','Bold','Italic','NumberedList','BulletedList', 'Blockquote', 'pbckcode','WecenterImage', 'WecenterAttach', 'WecenterLink', 'WecenterVideo', 'Table','Maximize']
]
config.extraPlugins = 'autolink,pbckcode,bbcode,sourcearea,wecenterattach,wecenterimage,wecenterlink,wecentervideo,blockquote,font,table';
config.resize_enabled = false;
config.language = 'zh-cn';
config.skin = 'bootstrapck';
config.height = 250;
// 过滤粘贴内容
config.forcePasteAsPlainText = true;
config.magicline_color = '#ccc';
config.magicline_everywhere = true;
config.fontSize_sizes = '16px;18px';
// The default plugins included in the basic setup define some buttons that
// are not needed in a basic editor. They are removed here.
config.removeButtons = 'Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript';
// Dialog windows are also simplified.
config.removeDialogTabs = 'link:advanced';
config.removePlugins = 'enterkey,elementspath,contextmenu';
};
然后去ckeditor 官网下载了表格插件,并上传到服务器,
在编辑问题时可以插入表格
但是问题时,在问题页面却无法显示,请问有人知道如何解决么?
阅读全文
收起全文