Wordpress 默认文本编辑器修改

一、WordPress有自带文本编辑器修改替换

首先去官网下载CKEditor For WordPress,或者直接在后台插件里面安装

1.     Upload this plugin to the /wp-content/plugins/ directory.

2.     Activate the plugin through the 'Plugins' menu in WordPress.

3.     Check your account profile settings and uncheck option "Disable the visual editor when writing" if checked.

4.     To install CKFinder, please read ckfinder/readme.txt.

CKFinder集成了上传图片等功能,使得ckeditor-for-wordpress更加强大

1、下载 CKFinder for PHP: http://ckfinder.com/download
2、 上传ckfinder文件夹的内容到服务器“ckfinder”的根目录。
3、 重命名ckfinder_config.php为config.php(覆盖掉原有文件夹下的config.php文件)

 

此时你服务器文件夹的结构应该为:

ckeditor-for-wordpress
  ckeditor    <dir>
  ckfinder    <dir>
    _samples  <dir>
    core      <dir>
    userfiles <dir>
    ckfinder.php
    ckfinder.js
    config.php
    …

你可以删除ckfinder文件下“_samples”和 “userfiles”例子与用户文件夹两个子文件夹,没有什么用处。

4、最后在左边CKEditor的管理菜单中选择upload options 中启用ckfinder功能即可。

二、如果网站中做了后期修改,没有插件等菜单的显示,那么我们可以通过以下操作来替换编辑器

1.在完善的WordPress里面安装并激活相应编辑器

2.将整个wp-content文件夹下的plugins文件夹替换到目标网站

如何去除插件列表在左侧菜单的显示?

找到当前主题下的functions.php文件,添加如下代码,其中remove_menu_page()函数对应的参数为href=“admin.php?page=ckeditor_settings”中标红的部分,如下

/**

 * 名称:去除添加的插件列表面板

 */

add_action( 'admin_init', 'my_remove_menu_pages' );

function my_remove_menu_pages() {

    remove_menu_page('ckeditor_settings');

}


 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值