« Extra:VisualEditorTest » : différence entre les versions

De Semantic MediaWiki - Sandbox

(remove line numbering)
(chg)
 
(40 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
This was my first visual edit on a wiki using a self installed VisualEditor. Finally got this one working. On Wikimedia projects I have probably done about ten visual edits so far. Still I do not see the advantage to e.g. WikiEdior - au contraire.
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 and there is no need to I guess.
 
Finally got visual editing working for this wiki. <u>The documentation is apparently not self-explanatory.</u>


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
Ligne 5 : Ligne 7 :
wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'VisualEditor' );
$wgVisualEditorAvailableNamespaces = [
$wgVisualEditorAvailableNamespaces = [
NS_EXTRA => true
'Extra' => true
];
];
$wgVirtualRestConfig['modules']['parsoid'] = [
$wgVirtualRestConfig['modules']['parsoid'] = [
'url' => 'http://sandbox.semantic-mediawiki.org:8142',
'url' => 'https://sandbox.semantic-mediawiki.org:8143',
'domain' => '02100',
'domain' => 'sandbox.semantic-mediawiki.org'
'prefix' => '02100'
];
];
</syntaxhighlight>
</syntaxhighlight>
'''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. <u>'''I am very pissed indeed.'''</u> 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 [https://discourse-mediawiki.wmflabs.org/t/getting-visualeditor-to-switch-between-source-and-visual-editing/143 Wikimedia Developer Support]. No the suggested solution leads to nowhere.
== Testing VisualEditor after updating to new branches ==
* Now on 1.31 and I will be surprised if this visual edit works out fine.
* ''On 1.32 and the new server the VisualEditor appears to work, too.''
* After fixing [https://phabricator.wikimedia.org/T225354 issue T225354] VisualEditor works great again on 1.33!

Dernière version du 20 juin 2019 à 00:10

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 and there is no need to I guess.

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. No the suggested solution leads to nowhere.

Testing VisualEditor after updating to new branches

  • Now on 1.31 and I will be surprised if this visual edit works out fine.
  • On 1.32 and the new server the VisualEditor appears to work, too.
  • After fixing issue T225354 VisualEditor works great again on 1.33!
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.