|
Rank: Member Groups: Member
Joined: 5/2/2017 Posts: 25
|
We are trying to build the HTML editor for the WebView. Specifically we need to edit the local HTML file, saved on client machine (not on server). However we have problems.
The code is:
Private Sub WebView_LoadCompleted(sender As Object, e As LoadCompletedEventArgs) m_scriptCall = New EO.WebBrowser.ScriptCall("document.body.contenteditable=true;", AddressOf script_event) m_webControl.WebView.QueueScriptCall(m_scriptCall) End Sub
It is executed successfully and in script_event function m_scriptCall.Result is True. Unfortunately, after execution of this script it is still not possible to edit loaded webpage. Please, let me know if editing page feature is supported by WebView class.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi,
You can test the same code with Google Chrome and see if it works for you. We are not in a position to tell you why a specific JavaScript does not work. However since the WebView is based on the same browser engine as Google Chrome, it should demonstrate the same behavior. So if they behave differently (which do occur sometimes for various reasons), we will look into it.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 5/2/2017 Posts: 25
|
eo_support wrote:Hi,
You can test the same code with Google Chrome and see if it works for you. However since the WebView is based on the same browser engine as Google Chrome, it should demonstrate the same behavior. So if they behave differently (which do occur sometimes for various reasons), we will look into it.
Thanks! Thank you for suggestion. We tested code with Google Chrome and code works fine there. Please see the screenshot below. However it does not work for EO WebView. Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
We tested this feature and it works fine. We did notice the script you posted has "contenteditable" instead of "contentEditable". You should not rely on us to troubleshoot this kind problems for you.
|
|
Rank: Member Groups: Member
Joined: 5/2/2017 Posts: 25
|
eo_support wrote:We did notice the script you posted has "contenteditable" instead of "contentEditable". THANK YOU VERY MUCH! Your help and advice resolved our problem. Really appreciate!
|
|