首先你需要Parsoid.
$wgVisualEditorParsoidPrefix =
'localhost';
//如果只有一个wiki,保持本行不动。$wgVisualEditorParsoidURL =
'http://localhost:8000';
//如果用的是Debian包,端口是8142。
$wgDefaultUserOptions
['visualeditor-enable'] = 1;
//用于启用可视编辑
$wgHiddenPrefs[] =
'visualeditor-enable'
//并且不允许关闭,如果需要源代码编辑,删除此行
若使用 MediaWiki 1.23,还需要PHP的Parsoid插件。