Embedding Videos

Operating system

Windows

Joplin version

2.13.15

Desktop version info

Joplin 2.13.15 (prod, win32)

Client ID: f8bb40f8c08d45fbbc91c94dc404c8b4
Sync Version: 3
Profile Version: 44
Keychain Supported: Yes

Revision: 7d2c1c0

What issue do you have?

I am able to embed videos in Joplin, but when I close the file, it's no longer there when I open it again. How can I make the embedded video remain in place?

Screenshots

Thanks. I will give that a try. :slightly_smiling_face:

1 Like

Hi again.

I added the plugin but I'm getting the same result when I embed a video. Once the note closed, it's gone when it's again opened.

gotcha. Could you describe what's the workflow you use to embed youtube videos?

When I want to embed a YouTube video, I select the Copy Embed Code among the options in the video's dropdown menu. I paste the code into my note and the copied video works wonderfully.

But when I close the note, it apparently vanishes since the video isn't there when the note is reopened. Clearly a step is missing, but I don't know what it is.

There is a list of disallowed HTML tags in the Joplin source code. It will strip them out if you try to use them (see https://discourse.joplinapp.org/t/how-to-use-iframe-tag-and-render-in-joplin/32421). I assume that this is happening here as well. I'm actually very surprised that you've got the embedded video to display at all, as in my testing, this only worked after modifying the source code to allow the blocked tags.

Well, I don't know where to find this code or how to modify it. It would have been nice to have videos right in my notes, but I guess I'll have to be happy with having a link to the videos instead.

Thank you for your help.

Specifically it's this line in the code:

Although, looking at it now, it appears that the embed tag is allowed though? It that's the case, maybe it could be possible to display the video using similar code as shown in the first example at https://stackoverflow.com/a/25188747.

One possible problem is that the note may need to be set to HTML and not Markdown to actually keep the HTML untouched which isn't straightforward. There is a plugin to do it though (see https://github.com/Daeraxa/joplin-plugin-toggle-markup).

I think what you could try doing first is to simply install the linked plugin, then change the note shown in the first post to HTML, and then see what happens if you close and open it again.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.