remarkable
remarkable copied to clipboard
youtube url plugin
Hello! I found few issues about youtube. Can you say me what is the best plugin to add youtube embed block ?
for example when user write
watch my video https://www.youtube.com/watch=Lrzr1LlZfhg
i would like to have something like this
<p>watch my video</p>
<you tube html embed/>
how about wrapping the URL In a link?
watch my video [https://www.youtube.com/watch=Lrzr1LlZfhg](https://www.youtube.com/watch=Lrzr1LlZfhg)
You can also copy the embed from youtube directly. Markdown parsers will honor the HTML and ignore it when converting the rest of the content to html. This has worked for me with one or more embeds on the page
<iframe width="560" height="315" src="https://www.youtube.com/embed/GiCcK039x_o" frameborder="0" allowfullscreen></iframe>
Does this help?
@caraya thak you for your answer.
Unfortunally most of our users do not understand markdown rules. What they do is just copy url from browser and paste it into message field.
I think youtube plugin which i looking for is internal aulolink feature + one extra cheking if (url.startsWith("youtube")). Is anybody writes same pluggin?
@alexey2baranov Yes, I have created a plugin for this purpose based on a compilation of existing ones:
https://github.com/noticeableapp/remarkable-iframify