             DDLogError("Error setting up editor: \(error)")
         }
     }
-    
-    func apply(theme: Theme) {
-        self.theme = theme
-        evaluateJavaScript("window.wmf.applyTheme(`\(theme.codemirrorName)`);", completionHandler: nil)
-    }
 }
 
 extension SectionEditorWebView {

        self.load(URLRequest(url: url, cachePolicy: .reloadIgnoringCacheData, timeoutInterval: WKWebViewLoadAssetsHTMLRequestTimeout))
    }
}

typealias SectionEditorWebViewCompletionBlock = (Error?) -> Void
typealias SectionEditorWebViewCompletionWithResultBlock = (Any?, Error?) -> Void

class SectionEditorWebView: WKWebViewWithSettableInputViews {
    let config = SectionEditorWebViewConfiguration()
    var theme: Theme

