I have developed a custom tool (using html and javascript) that does visualize some specific data and helps to find answers that are time consuming when done by hand. I want to include that tool into my docuwiki as plugin and access it from docuwiki page. The tool does load its data from JSON formatted object, it does manipulate the data and I would also like to store the data on file. I have got an idea that the JSON data can be stored on dokuwiki's page.
I figured out that it would be generally beneficial to have a plugin that does execute standalone javascript powered web page inside <iframe> and store the JSON formatted data inside docuwiki page. Thus the plugin shall send the data into iframe application and receive changes from iframe. Dokuwiki's workflow requires that the page has to be opened for editing when I want to store the changes on page. This is perfectly OK. The plugin can inform the iframe's application that changes will not be saved and it will be task for the iframe's application to help me not to make any changes- just browse around.
I have started a "framelet" plugin project: https://github.com/peetervois/docuwiki_plugin_framelet that will allow user to write into docuwiki's page the following:
<framelet width=100% height=300px scale=0.95 href=lib/plugins/framelet/test/index.html >
{
"text":"This is written on the docuwiki page"
}
</framelet>
The framelet will be changed with <iframe>, the iframe will be sized and scaled according to attributes of <framelet. The page is loaded from href attribute. Inside the project, the test folder contains working framelet. At the moment the data is moving from the dokuwiki page's DOM element to the framelet and will move from the framelet to dokuwiki's DOM element.
I have read the instructions on https://www.dokuwiki.org/devel:section_editor and was trying to implement the Custom Section Editor. I messed up something terribly and the Data and EditTable plugins are for me little "too high flight", thus I was thinking that it is right time to look for help from community.
So, any help is welcome !