「Mediawiki 開發擴展」修訂間的差異
跳至導覽
跳至搜尋
(新頁面: 分類:Mediawiki) |
|||
| 第1行: | 第1行: | ||
[[分類:Mediawiki]] | [[分類:Mediawiki]] | ||
| + | ===視覺化編輯器(visual editer)=== | ||
| + | *需要 Parsoid | ||
| + | *設 $wgVisualEditorParsoidPrefix = 'localhost'; | ||
| + | *設 $wgVisualEditorParsoidURL = 'http://localhost:8000'; // Debian,port是8142 | ||
| + | *設 $wgDefaultUserOptions['visualeditor-enable'] = 1; | ||
| + | *$wgHiddenPrefs[] = 'visualeditor-enable'; // 不許關閉,若要用 wiki 碼編,不用此行 | ||
| + | *設 require_once "$IP/extensions/VisualEditor/VisualEditor.php"; | ||
| + | * MediaWiki 1.23,還需要額外的 PHP Parsoid 插件,之後的版本不用。 | ||
於 2015年9月26日 (六) 14:52 的修訂
視覺化編輯器(visual editer)
- 需要 Parsoid
- 設 $wgVisualEditorParsoidPrefix = 'localhost';
- 設 $wgVisualEditorParsoidURL = 'http://localhost:8000'; // Debian,port是8142
- 設 $wgDefaultUserOptions['visualeditor-enable'] = 1;
- $wgHiddenPrefs[] = 'visualeditor-enable'; // 不許關閉,若要用 wiki 碼編,不用此行
- 設 require_once "$IP/extensions/VisualEditor/VisualEditor.php";
- MediaWiki 1.23,還需要額外的 PHP Parsoid 插件,之後的版本不用。