         captchaViewController?.apply(theme: theme)
         wmf_add(childController: captchaViewController, andConstrainToEdgesOfContainerView: captchaContainer)
         
-        mode = .PREVIEW_MODE_EDIT_WIKITEXT_PREVIEW
+        mode = .preview
         
         let vc = EditSummaryViewController(nibName: EditSummaryViewController.wmf_classStoryboardName(), bundle: nil)
         vc.delegate = self

    func editSaveViewControllerDidSave(_ editSaveViewController: EditSaveViewController)
}

enum WMFPreviewAndSaveMode : Int {
    case PREVIEW_MODE_EDIT_WIKITEXT
    case PREVIEW_MODE_EDIT_WIKITEXT_WARNING
    case PREVIEW_MODE_EDIT_WIKITEXT_DISALLOW
    case PREVIEW_MODE_EDIT_WIKITEXT_PREVIEW
    case PREVIEW_MODE_EDIT_WIKITEXT_CAPTCHA
}

class EditSaveViewController: WMFScrollViewController, Themeable, UITextFieldDelegate, UIScrollViewDelegate, PreviewLicenseViewDelegate, WMFCaptchaViewControllerDelegate, EditSummaryViewDelegate {

        
        buttonSave = UIBarButtonItem(title: WMFLocalizedStringWithDefaultValue("button-publish", nil, nil, "Publish", "Button text for publish button used in various places.\n{{Identical|Publish}}"), style: .plain, target: self, action: #selector(self.goForward))
        
        mode = .preview
        summaryText = ""
        
        //self.saveAutomaticallyIfSignedIn = NO;
