Welcome Guest Search | Active Topics | Sign In | Register

Is editing page feature supported by WebView class Options
iTester
Posted: Sunday, January 20, 2019 9:09:05 PM
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.
eo_support
Posted: Monday, January 21, 2019 10:20:21 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,070
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!
iTester
Posted: Monday, January 21, 2019 3:29:02 PM
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!
eo_support
Posted: Tuesday, January 22, 2019 10:14:43 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,070
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.
iTester
Posted: Tuesday, January 22, 2019 7:11:13 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.