Open fbgallet opened 3 years ago
Thank you (merci) Fabrice. This looks very useful. When I run it, I get the iframe but it doesn't open in the sidebar.
This is what I get in the sidebar: '--> Variable iframeRef not SET <--'
Hi @kmaustral , make sure that the two smartblock commands beetwen the two blocks of javascript are on their own line:
If it doesn't work, add perhaps some sleep time at the end of first javascript block.
I have added a link to the JSON file for better support of the code structure.
Thanks. It works fine now. It seems like Roam is becoming more and more like a browser.
New version, v1.1, with some fixes has been pushed up
π Import the JSON file below in your graph to be sure to preserve the code structure
iframe selector v1.3.zip
π Description:
Demo video: https://youtu.be/ZqwE4hhpbVM
Open an iframe embed of an URL in child block (and optionally in sidebar), allowing to choose beetwen different Iframely views or iframe Roam vanilla (see video above for examples):
Default view is iframely default, as defined is [[roam/js/iframely]] settings. Other settings are available in the code block of the SmartBlock: force opening in sidebar, default string for the alias, default view, default css added to the iframe block.
v.1.3 May 23, 2021 New feature:
v1.1 March 27th 2021 Fixes:
β Prerequisites or dependencies that are required for this SmartBlock
π‘ Additional Info
π Import the JSON file below in your graph to be sure to preserve the code structure iframe selector v1.3.zip
βοΈ Code of the SmartBlock:
π· Screenshot of the #42SmartBlock (note entire code)
)