Search first
What Happened?
In logseq OG
You can create iframes and embedded static html assets.
Renders correctly in logseq OG
Using
<iframe src="file:///C:/dev/work/notes/radian-arc-length.html" width="100%" height="720" style="border: 0;" title="Interactive explanation of radians using arc length and radius"></iframe>
In logseq 2 the above markdown does not render anything.
The embedd does work when serving the static html file from a local server, but the original logseq supported loading the static html files from the file system.
Reproduce the Bug
- Create a note
-
<iframe src="file:///C://assets/radian-arc-length.html" width="100%" height="720" style="border: 0;" title="Interactive explanation of radians using arc length and radius"></iframe>
- place the html asset in the above folder
Use full path to the html asset
radian-arc-length.html
Expected Behavior
The html iframe should render like it does in Logseq OG
local files are allowed to be loaded by logseq
Screenshots
CTRL + SHIFT + I
Console logs:
"Not allowed to load local resource: "
I can see the asset that i embedded is blocked from loading in logseq2
Desktop or Mobile Platform Information
OS Version: Windows 11
Logseq 2: 2.0.1 Current Revision: b09316a
Logseq OG: 1.0.0 Current Revision: 680b371
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.
Search first
What Happened?
In logseq OG
You can create iframes and embedded static html assets.
Renders correctly in logseq OG
Using
<iframe src="file:///C:/dev/work/notes/radian-arc-length.html" width="100%" height="720" style="border: 0;" title="Interactive explanation of radians using arc length and radius"></iframe>In logseq 2 the above markdown does not render anything.
The embedd does work when serving the static html file from a local server, but the original logseq supported loading the static html files from the file system.
Reproduce the Bug
Use full path to the html asset
radian-arc-length.html
Expected Behavior
The html iframe should render like it does in Logseq OG
local files are allowed to be loaded by logseq
Screenshots
CTRL + SHIFT + I
Console logs:
"Not allowed to load local resource: "
I can see the asset that i embedded is blocked from loading in logseq2
Desktop or Mobile Platform Information
OS Version: Windows 11
Logseq 2: 2.0.1 Current Revision: b09316a
Logseq OG: 1.0.0 Current Revision: 680b371
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.