[pLog-svn] r7260 - in plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo: . css
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Tue Oct 31 22:15:15 EDT 2023
Author: jondaley
Date: 2023-10-31 22:15:15 -0400 (Tue, 31 Oct 2023)
New Revision: 7260
Modified:
plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/README.txt
plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/css/content.css
plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/functions.js
Log:
youtube was removed a while ago, but this checkbox wasn't ever removed
Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/README.txt
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/README.txt 2022-01-12 17:48:05 UTC (rev 7259)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/README.txt 2023-11-01 02:15:15 UTC (rev 7260)
@@ -2,8 +2,8 @@
Author: Oscar Renalias / LifeType (copied from the flash plugin)
-A plugin for tinymce that allows to insert videos from youtube and
-google video without breaking the xhhtml compliancy. The code has been
+A plugin for tinymce that allows to insert videos from various sources
+without breaking the xhhtml compliancy. The code has been
shamelessly ripped from the tinymce 'flash' plugin but it works.
Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/css/content.css
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/css/content.css 2022-01-12 17:48:05 UTC (rev 7259)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/css/content.css 2023-11-01 02:15:15 UTC (rev 7260)
@@ -1,10 +1,3 @@
-.ltVideoYouTube {
- border: 1px dotted #cc0000;
- background-image: url('../img/youtube.png');
- background-position: center;
- background-repeat: no-repeat;
- background-color: #ffffcc;
-}
.ltVideoVimeo {
border: 1px dotted #cc0000;
background-image: url('../img/vimeo.png');
Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/functions.js
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/functions.js 2022-01-12 17:48:05 UTC (rev 7259)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/insertvideo/functions.js 2023-11-01 02:15:15 UTC (rev 7260)
@@ -21,52 +21,6 @@
return url;
}
-function getYouTubeLink( url )
-{
- var regexp;
- // 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\/.*?v=/i )) {
- // and if it's a link to a normal youtube page, build the right link to the video player
- regexp = /http:\/\/.{2,3}\.youtube.com\/.*?v=([\-0-9a-zA-z_]*).*/i;
- result = regexp.exec( url );
- if( result ) {
- videoId = result[1];
- }
- else {
- // let's try to make a best guess...
- videoId = url.substring( 31, url.length );
- }
-
- url = "http://www.youtube.com/v/" + videoId;
- }
- else if ( url.substring( 0, 27 ) == "http://youtube.com/watch?v=" ) {
- // Checks if the URL is missing WWW.
- // and if it's a link to a normal youtube page, build the right link to the video player
- regexp = /http:\/\/youtube.com\/.*?v=([\-0-9a-zA-z_]*).*/i;
- result = regexp.exec( url );
- if( result ) {
- videoId = result[1];
- }
- else {
- // let's try to make a best guess...
- videoId = url.substring( 27, url.length );
- }
-
- url = "http://www.youtube.com/v/" + videoId;
- }
- else {
- regexp = /.*?v=([\-0-9a-zA-z_]*).*/i;
- result = regexp.exec( url );
- if( result ) {
- videoId = result[1];
- url = "http://www.youtube.com/v/" + videoId;
- }
- }
-
- return( url );
-}
-
function getGoogleVideoLink( url )
{
// check if it's a link to a video page or a link to the video player
@@ -186,7 +140,6 @@
// check if a destination system was selected
vimeo = document.getElementById("vimeo");
- youtube = document.getElementById("youtube");
gvideo = document.getElementById("gvideo");
metacafe = document.getElementById("metacafe");
ifilm = document.getElementById("ifilm");
@@ -195,7 +148,6 @@
dailymot = document.getElementById("dailymot");
if( vimeo.checked === false &&
- youtube.checked === false &&
gvideo.checked === false &&
metacafe.checked === false &&
ifilm.checked === false &&
@@ -212,12 +164,6 @@
width=425;
height=355;
}
- if( youtube.checked === true ) {
- link = getYouTubeLink( url );
- css="ltVideoYouTube";
- width=425;
- height=355;
- }
if( gvideo.checked === true ) {
link = getGoogleVideoLink( url );
css="ltVideoGoogleVideo";
More information about the pLog-svn
mailing list