Hello,
i am working on my own richtext editor based on webview and javascript.
With the webviewextras library i can call javascript functions that were loaded from a asset file into a webview.
The problem i am facing is that i cannot assign in B4A a variable to the content of the webview.
With webviewextras i can call a javascript function that returns the content:
// call B4A function
function getHTML() {
B4A.CallSub("returnHTML",true,document.getElementById('myDiv').innerHTML);
}
The content is then transferred to the B4A function "returnHTML" - that's fine.
BUT i see no way to simply call a B4A class directly like:
mycontent = editor.getHTML
The same is true for the opposite, to fill a webview by a simple call in B4A, like:
editor.putHTML = "bla bla bla"
This is probably due my lack of understanding of Javascript :-( and the way to interact with B4A.
Maybe its possible with another library like ultimatewebview or webkitwebview .... but these are quite undocumented as far as i can see. Any idea how this class "editor" could look like ?
Any help is very much appreciated,
Chris