The reminder of the loading pictures in external html plugin #3160
Tongzhao9417
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone. I just want to write down a reminder that if you require to insert some picture by external html plugin.
If your external html in a folder and the ts or js file in another folder, the path of image in external html should be the relative path from js or ts file, not the external html.
For example:
The assets and src folders in same level.
The welcome.ts use external-html plugin to render the welcome.html in assets folder, and the welcome.html loaded the picture (like left.png) under assets either. I can write the html file by this
But the console will tell you cant't find the picture.
So, the corrent way is
The relative path from welcome.ts
Beta Was this translation helpful? Give feedback.
All reactions