Wikia/app — pull request #3899 by BladeBronson (2014-06-12 01:20:06+00:00)
Title: VE-518: Insert content properly when saving

As reported by Rochan. When canceling an edit, the hidden elements in the content area are simply redisplayed (category thumbs, category list, etc), but when saving, the entire content area is emptied and replaced.

I've written our own version of replacePageContent that takes this into consideration and inserts the new content into the correct place.