-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow 'openLinksInNewWindow' affect the link inside the svg when 'smoothLivePreview' is true #15
Comments
Ok thanks. Anyway i manually removed the link and added a simple paragraph along the lines of "your video will be correcty embedded" with a more readable color. I did this because the link wasn't readable because of its blue color; i checked the code now and it has a "color:#fff" in the div wrapping the link, but it doesn't affect the link itself (at least not in firefox). ¿Maybe the color issue is my own problem? |
I had a good look at it and I really don't know why the link is even there in the first place. (I think it was an artifact from smoothLivePreview is supposed to be used in live editors, as a placeholder, to reduce the burden placed in the browser. For instance, let's say you're using angular to create a live editor like this one. Every time the user types one character, showdown reads all text and parses it. Now, let's say you have 5 youtube videos in your live md text. Then it means everytime the user types a character, those 5 videos are recreated again (means 5 requests to youtube + loading the iframe). That can be extremely laggy. using smoothLivePreview prevents this since all is shown to the user is an image (or a SVG) |
Yes, i use it in a live previewer also. Even if there is only 1 video, it will constantly flicker (or completely disappear) as you type because the iframe starts empty and then fills itself with the video thumbnail. So using But then i see 2 problems with the svg placeholder:
My own initial approach to solving these was switching the link for a simple informative line "your video will be correctly embedded" |
Is it reasonable? Also sorry if i don't do it myself but i have very low experience with Git and JS
The text was updated successfully, but these errors were encountered: