mirror of
https://github.com/ONLYOFFICE/desktop-sdk.git
synced 2026-03-31 10:23:12 +08:00
Fix open html files
This commit is contained in:
@ -187,7 +187,7 @@ public:
|
|||||||
sDivId = val->GetStringValue().ToString();
|
sDivId = val->GetStringValue().ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string sCode = "var _asc_sdk_value = new window.asc_docs_api({'id-view':\"" + sDivId + "\" });window.editor.CreateComponents();";
|
std::string sCode = "var _asc_sdk_value = new window.asc_docs_api({'id-view':\"" + sDivId + "\" });";
|
||||||
|
|
||||||
CefRefPtr<CefFrame> _frame = CefV8Context::GetCurrentContext()->GetFrame();
|
CefRefPtr<CefFrame> _frame = CefV8Context::GetCurrentContext()->GetFrame();
|
||||||
_frame->ExecuteJavaScript(sCode, _frame->GetURL(), 0);
|
_frame->ExecuteJavaScript(sCode, _frame->GetURL(), 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user