API:Edit/Editing with Ajax

Editing via Ajax
Below is demonstrated sample code for editing a page via an Ajax request: You can also use the mw.Api object: Remember to make sure the  module is loaded when using this methodology.