Hi, Jose!
try 'iframe' instead of 'embed':
iframe:http://www.youtube.com/embed/x1w8hKTJ2Co
In 1.99.7 embed looks like iframe, and iframe is not used at all (it's a new
feature):
*>>> markmin2html('embed:http://www.youtube.com/embed/x1w8hKTJ2Co')*
'<p><iframe src="http://www.youtube.com/embed/x1w8hKTJ2Co" frameborder="0"
allowfullscreen></iframe></p>'
*>>> markmin2html('iframe:http://www.youtube.com/embed/x1w8hKTJ2Co')*
'<p>iframe:<a
href="http://www.youtube.com/embed/x1w8hKTJ2Co">http://www.youtube.com/embed/x1w8hKTJ2Co</a></p>
in the trunk embed is simply a link with class='embed'. We need css rule to make
this link works:
*>>> markmin2html('embed:http://www.youtube.com/embed/x1w8hKTJ2Co')*
'<p><a href="http://www.youtube.com/embed/x1w8hKTJ2Co"
class="embed">http://www.youtube.com/embed/x1w8hKTJ2Co</a></p>'
*>>> markmin2html('iframe:http://www.youtube.com/embed/x1w8hKTJ2Co')*
'<p><iframe src="http://www.youtube.com/embed/x1w8hKTJ2Co" frameborder="0"
allowfullscreen></iframe></p>'
Vladyslav Kozlovskyy (Ukraine)
26.07.12 05:07, Jose ???????(??):
Hi all
From the book:
https://web2py.com/books/default/chapter/29/5
The following is not working
|embed:http://www.youtube.com/embed/x1w8hKTJ2Co|
|
|
|show me the url and not the video
|
|
|
|I'm using the trunk version,in version 1.99.7 works well.
|
|José|
--
--