 
     @objc var useRichEditor: Bool = true
 
-    private func update(completionHandler: ((Error?) -> Void)? = nil) {
+    private func update(completionHandler: (SectionEditorWebViewCompletionBlock)? = nil) {
         evaluateJavaScript("""
             window.wmf.setCurrentEditorType(window.wmf.EditorType.\(useRichEditor ? "codemirror" : "wikitext"));
             window.wmf.update();

    case undo
    case redo
}

class SectionEditorWebView: WKWebView {


    }
    
    // Method for relaying various commands to codemirror - i.e. 'execCodeMirrorCommand(type: .cursorUp)'
    @objc func execCodeMirrorCommand(type: CodeMirrorExecCommandType, completionHandler: (SectionEditorWebViewCompletionWithResultBlock)? = nil) {
        evaluateJavaScript("window.wmf.execCommand(window.wmf.ExecCommandType.\(string(for: type)));", completionHandler: completionHandler)
    }

