[pLog-svn] r6512 - plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo
reto at devel.lifetype.net
reto at devel.lifetype.net
Sun Jun 8 06:34:00 EDT 2008
Author: reto
Date: 2008-06-08 06:33:59 -0400 (Sun, 08 Jun 2008)
New Revision: 6512
Modified:
plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/editor_plugin.js
plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/functions.js
Log:
fixes http://bugs.lifetype.net/view.php?id=1522
Direct links to youtube videos didn't work for a long, long time.
Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/editor_plugin.js
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/editor_plugin.js 2008-06-08 04:33:13 UTC (rev 6511)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/editor_plugin.js 2008-06-08 10:33:59 UTC (rev 6512)
@@ -269,9 +269,9 @@
html = "<object type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\" data=\""+url+"\" id=\""+type+"\">"+
"<param name=\"movie\" value=\""+url+"\" />"+
"<param name=\"wmode\" value=\"transparent\" />"+
- "<param name=\"allowScriptAcess\" value=\"sameDomain\" />"+
+ "<param name=\"allowScriptAccess\" value=\"sameDomain\" />"+
"<param name=\"quality\" value=\"best\" />"+
- "<param name=\"bgcolor\" value=\"#FFFFFF\" />";
+ "<param name=\"bgcolor\" value=\"#ffffff\" />";
// "<param name=\"scale\" value=\"noScale\" />";
if (type=='ltVideoGoear') {
html= html + "<param name=\"FlashVars\" value=\""+url.substring( 43, url.length ) + "\" />";
Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/functions.js
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/functions.js 2008-06-08 04:33:13 UTC (rev 6511)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/functions.js 2008-06-08 10:33:59 UTC (rev 6512)
@@ -12,7 +12,7 @@
{
// check if this is a URL pointing to a youtube link or to a youtube video
//if( url.substring( 0, 31 ) == "http://www.youtube.com/watch?v=" ) {
- if( url.match( /http:\/\/.{2,3}\.youtube.com\//i )) {
+ if( url.match( /http:\/\/.{2,3}\.youtube.com\/.*?v=/i )) {
// and if it's a link to a normal youtube page, build the right link to the video player
var regexp = /http:\/\/.{2,3}\.youtube.com\/.*?v=([\-0-9a-zA-z_]*).*/i;
result = regexp.exec( url );
@@ -189,14 +189,14 @@
if( youtube.checked == true ) {
link = getYouTubeLink( url );
css="ltVideoYouTube";
- width=450;
- height=350;
+ width=425;
+ height=355;
}
if( gvideo.checked == true ) {
link = getGoogleVideoLink( url );
css="ltVideoGoogleVideo";
- width=400;
- height=326;
+ width=425;
+ height=355;
}
if( metacafe.checked == true ) {
link = getMetacafeVideoLink( url );
@@ -245,4 +245,4 @@
tinyMCE.selectedInstance.repaint();
tinyMCEPopup.close();
-}
\ No newline at end of file
+}
More information about the pLog-svn
mailing list