« Extra:VisualEditorTest » : différence entre les versions
De Semantic MediaWiki - Sandbox
m (form) |
(add) |
||
Ligne 18 : | Ligne 18 : | ||
curl https://sandbox.semantic-mediawiki.org:7232/sandbox.semantic-mediawiki.org/v1/page/html/Main_Page | curl https://sandbox.semantic-mediawiki.org:7232/sandbox.semantic-mediawiki.org/v1/page/html/Main_Page | ||
... works, so why the heck .... | ... works, so why the heck .... and so I asked at [https://discourse-mediawiki.wmflabs.org/t/getting-visualeditor-to-switch-between-source-and-visual-editing/143 Wikimedia Developer Support]. |
Version du 2 février 2018 à 19:05
This was my first visual edit on a wiki using a self installed VisualEditor. On Wikimedia projects I have probably done about ten visual edits so far. That's not really much.
Finally got visual editing working for this wiki. The documentation is apparently not self-explanatory.
## VisualEditor
wfLoadExtension( 'VisualEditor' );
$wgVisualEditorAvailableNamespaces = [
'Extra' => true
];
$wgVirtualRestConfig['modules']['parsoid'] = [
'url' => 'https://sandbox.semantic-mediawiki.org:8143',
'domain' => 'sandbox.semantic-mediawiki.org'
];
Parsoid via stunnel is at https://sandbox.semantic-mediawiki.org:8143/.
RESTbase via stunnel is at https://sandbox.semantic-mediawiki.org:7232/sandbox.semantic-mediawiki.org/v1/. When enabled via VisualEditor neither Parsoid nor RESTbase work. I am very pissed indeed. I am not sure if it is good or bad that both servers are running flawlessly in and environment isolated from each other.
curl https://sandbox.semantic-mediawiki.org:7232/sandbox.semantic-mediawiki.org/v1/page/html/Main_Page
... works, so why the heck .... and so I asked at Wikimedia Developer Support.