 
 // MARK: - Utilities
 extension RichEditorView {
+    
+    /**
+    Runs some JavaScript on the UIWebView and returns the result
+    If there is no result, returns an empty string
+    
+    :param:   js The JavaScript string to be run
+    :returns: The result of the JavaScript that was run
+    */
+    public func runJS(js: String) -> String {
+        let string = webView.stringByEvaluatingJavaScriptFromString(js) ?? ""
+        return string
+    }
 
     /**
         Converts a UIColor to its representation in hexadecimal

        }
        return newString
    }

    /**
        Runs some JavaScript on the UIWebView and returns the result
        If there is no result, returns an empty string
    
        :param:   js The JavaScript string to be run
        :returns: The result of the JavaScript that was run
    */
    private func runJS(js: String) -> String {
        let string = webView.stringByEvaluatingJavaScriptFromString(js) ?? ""
        return string
    }
}

            webView.scrollView.scrollEnabled = scrollEnabled
        }
    }
    
    /**
    The internal UIWebView that is used to display the text.
    */
    private var webView: UIWebView
    
    /**
        Whether or not to allow user input in the view.
