Hey everyone,
I'm trying to implement my gitbook.io – Documentation into one of my plugins, but I'm getting this javascript-error on Windows as already raised by @kbar some time ago:
Re: Tell the HTML Viewer to ignore javascript
Just wondering if there's a workaround here, I don't not know about..?
Here's a quick example for the Script-Editor:
import c4d
class Documentation(c4d.gui.GeDialog):
def __init__(self, url="https://shareio.gitbook.io"):
self.url = url
self.AddGadget(c4d.DIALOG_NOMENUBAR, 0)
def CreateLayout(self):
self.SetTitle("shareIO – Documentation")
self.GroupBegin(0, c4d.BFH_SCALEFIT, 0, 1)
self.GroupBorderSpace(2, 2, 2, 0)
self.AddGadget(c4d.DIALOG_PIN, 0)
self.GroupEnd()
self.browser = self.AddCustomGui(1000, c4d.CUSTOMGUI_HTMLVIEWER, "", c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, 200, 200)
self.browser.SetUrl(self.url, c4d.URL_ENCODING_UTF16)
return True
dlg = Documentation()
dlg.Open(c4d.DLG_TYPE_ASYNC)
Any hints or help is really appreciated!
Thanks,
Lasse