|
@@ -62,6 +62,7 @@ class NCRichdocument: NSObject, WKNavigationDelegate, WKScriptMessageHandler {
|
|
|
public func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
|
|
|
|
|
|
if (message.name == "RichDocumentsMobileInterface") {
|
|
|
+
|
|
|
if message.body as! String == "close" {
|
|
|
|
|
|
self.webView.removeFromSuperview()
|
|
@@ -69,6 +70,9 @@ class NCRichdocument: NSObject, WKNavigationDelegate, WKScriptMessageHandler {
|
|
|
self.viewDetail.navigationController?.popToRootViewController(animated: true)
|
|
|
self.viewDetail.navigationController?.navigationBar.topItem?.title = ""
|
|
|
}
|
|
|
+
|
|
|
+ if message.body as! String == "insertGraphic" {
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|