Discuz! 7.1编辑器字体大小功能的问题


  烈火网(LieHuo.Net)教程 Discuz! 7.1编辑器字体大小功能的问题,解决方法如下:

  修改include/js/post.js 搜索:

以下为引用的内容:
if(in_array(cmd, ['simple', 'fontname', 'fontsize', 'paragraph', 'list', 'smilies', 'createlink', 'quote', 'code', 'free', 'hide', 'audio', 'video', 'flash', 'attach', 'image']) || cmd == 'table' && wysiwyg || cmd == 'forecolor' && !arg) {

  修改为:

以下为引用的内容:
if(in_array(cmd, ['simple', 'paragraph', 'list', 'smilies', 'createlink', 'quote', 'code', 'free', 'hide', 'audio', 'video', 'flash', 'attach', 'image']) || cmd == 'table' && wysiwyg || in_array(cmd, ['fontname', 'fontsize', 'forecolor']) && !arg) {

  然后,更新缓存即可。

相关内容