setting up the transaction for inserting wikitext back into the surface