mirror of
https://github.com/ONLYOFFICE/desktop-sdk.git
synced 2026-02-10 18:15:05 +08:00
Fix open html files
This commit is contained in:
@ -187,7 +187,7 @@ public:
|
||||
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();
|
||||
_frame->ExecuteJavaScript(sCode, _frame->GetURL(), 0);
|
||||
|
||||
Reference in New Issue
Block a user