         self.load(URLRequest(url: url, cachePolicy: .reloadIgnoringCacheData, timeoutInterval: WKWebViewLoadAssetsHTMLRequestTimeout))
     }
 }
+
+extension SectionEditorWebView: Themeable {
+    func apply(theme: Theme) {
+        self.theme = theme
+        evaluateJavaScript("window.wmf.applyTheme(`\(theme.codemirrorName)`);", completionHandler: nil)
+    }
+}

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

extension SectionEditorWebView {

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

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

