From: Niklas Laxström Date: Wed, 19 Jun 2013 10:53:23 +0000 (+0000) Subject: mediawiki.api.parse: Specify wikitext as the content model X-Git-Tag: 1.31.0-rc.0~19377^2 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=ea20dfe82d24896b020f25ab7d5984fee11c0634;p=lhc%2Fweb%2Fwiklou.git mediawiki.api.parse: Specify wikitext as the content model The parse API defaults to use the content model of the title, which defaults to "API" in the main namespace which can be configured to have a different content model. Bug: 48201 Change-Id: I51143873e3782df4df500194a7ac71c4b446746b --- diff --git a/resources/mediawiki.api/mediawiki.api.parse.js b/resources/mediawiki.api/mediawiki.api.parse.js index 4044655edb..08bb17130b 100644 --- a/resources/mediawiki.api/mediawiki.api.parse.js +++ b/resources/mediawiki.api/mediawiki.api.parse.js @@ -23,6 +23,7 @@ apiPromise = this.get( { action: 'parse', + contentmodel: 'wikitext', text: wikitext } ) .done( function ( data ) {