-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set a function for Block's helpURL? #641
Comments
Just set the help URL to be a function. The function should return the URL of the help page. Within the function
|
No the problem is not with the block properties, Infact it works well: I have a help window that opens separately: Now I can't open this window with a URL. I have to open it myself. So I want to set a function instead of a URL string. And as I can't set an |
Hy everyone.
I'm making a custom blockly language to replace RegEx's syntax:
You may find it here
Now as you may have noticed it runs inside of Electron hence I can't set a URL for it. So about the only thing I knew to make it work was to insert some JavaScript into the URL:
But what happens is that nothing happens. I tried to see what goes wrong and did this:
And what I got was
openHelpWindowAtReferenceId
. So it was in the global namespace at first and changed it's place to be initialized before Blockly and changed the loading process so that could be loaded first. But still it's not defined.All the basic JavaScript functions are available but none of my functions works there.
Why is that so? Is Blockly using any XSS blocker for URLs? What can I do to set a function for the block's Help property?
The text was updated successfully, but these errors were encountered: