private void PreparePageForEditingAfterOrigamiChanges(string obj) { SaveNow(); // "Origami" is the javascript system that lets the user introduce new elements to the page. // It can insert .bloom-translationGroup's, but it can't populate them with .bloom-editables // or set the proper classes on those editables to match the current multilingual settings. // So after a change, this eventually gets called. We then ask the page's book to fix things // up so that those boxes are ready to edit _domForCurrentPage = _bookSelection.CurrentSelection.GetEditableHtmlDomForPage(_pageSelection.CurrentSelection); _currentlyDisplayedBook.UpdateEditableAreasOfElement(_domForCurrentPage); //Enhance: Probably we could avoid having two saves, by determing what it is that they entail that is required. //But at the moment both of them are required SaveNow(); RefreshDisplayOfCurrentPage(); }