[13:13:33] [[Tech]]; AppleBsTime; /* Trouble with Visual Editor */ new section; https://meta.wikimedia.org/w/index.php?diff=20436305&oldid=20433021&rcid=16233656 [13:14:26] [[Tech]]; AppleBsTime; /* Trouble with Visual Editor */; https://meta.wikimedia.org/w/index.php?diff=20436308&oldid=20436305&rcid=16233660 [21:13:04] Is there a way to use `mw` object to get the wikitext of a page when in read mode and then also update it? [23:12:41] acagastya: use the API to get the page contents and then mw.api.edit to save the page? [23:12:56] https://www.mediawiki.org/wiki/ResourceLoader/Core_modules#mediawiki.api [23:15:43] legoktm: I could not find the method which gets the page content. [23:17:28] acagastya: https://www.mediawiki.org/wiki/API:Get_the_contents_of_a_page [23:20:25] However, instead of building a script from the scratch, I was able to patch the pre-existing gadget. [23:20:41] Thank you for the pointer, legoktm. Really appreciate it! :D [23:20:48] np! [23:21:12] (However, for the last link, I meant, using the mw object atclient side. [23:22:00] I am guessing `mw.api.getCurPageWikiMarkup()` like method? [23:22:21] I have a vague memory of using something like that ages ago,