Hi everyone, I've just installed VisualEditor + parsoid for mediawiki. This is the my configurator:
---> localsettings.js exports.setup = function( parsoidConfig ) { // The URL here is supposed to be your MediaWiki installation root parsoidConfig.setInterwiki( 'localhost', ' http://www.startupperday.com/api.php' ); // Use the PHP preprocessor to expand templates via the MW API (default true) //parsoidConfig.usePHPPreProcessor = false; // Use selective serialization (default false) //parsoidConfig.useSelser = true; // allow cross-domain requests to the API (default disallowed) parsoidConfig.allowCORS = '*'; }; ---> LocalSettings.php require_once("$IP/extensions/VisualEditor/VisualEditor.php"); // Create VisualEditor namespace define( 'NS_VISUALEDITOR', 2500 ); define( 'NS_VISUALEDITOR_TALK', 2501 ); $wgExtraNamespaces[NS_VISUALEDITOR] = 'VisualEditor'; $wgExtraNamespaces[NS_VISUALEDITOR_TALK] = 'VisualEditor_talk'; // Allow using VisualEditor in the main namespace only (default) $wgVisualEditorNamespaces = array( NS_MAIN ); // Restrict VisualEditor to the VisualEditor namespace #$wgVisualEditorNamespaces = array(); #$wgVisualEditorNamespaces[] = NS_VISUALEDITOR; // Enable by default for everybody $wgDefaultUserOptions['visualeditor-enable'] = 1; // Don't allow users to disable it $wgHiddenPrefs[] = 'visualeditor-enable'; $wgVisualEditorParsoidURL = 'http://www.startupperday.com:8000/'; ---> but when I try to save everything in mediawiki I get: TypeError: Object.keys called on non-object at Function.keys (native) at Object.WikiConfig (/srv/ www.startupperday.com/Parsoid/js/lib/mediawiki.WikiConfig.js:41:20) at null.<anonymous> (/srv/ www.startupperday.com/Parsoid/js/lib/mediawiki.parser.environment.js:300:22) at processSome (/srv/ www.startupperday.com/Parsoid/js/lib/mediawiki.ApiRequest.js:98:17) at process._tickCallback (node.js:415:13) Can you help me? :((( -- *Marco De Nadai* http://www.marcodena.it/<http://www.marcodena.it/?utm_source=email&utm_medium=email&utm_campaign=Email%2Bpersonali> -- *Marco De Nadai* http://www.marcodena.it/<http://www.marcodena.it/?utm_source=email&utm_medium=email&utm_campaign=Email%2Bpersonali> _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l