All pastes #1717416 Raw Edit

Parche de TinyMCE

public diff v1 · immutable
#1717416 ·published 2009-12-16 21:12 UTC
rendered paste body
Index: tinymce/jscripts/tiny_mce/plugins/media/js/media.js===================================================================--- tinymce/jscripts/tiny_mce/plugins/media/js/media.js	(revisin: 453)+++ tinymce/jscripts/tiny_mce/plugins/media/js/media.js	(revisin: 457)@@ -319,6 +319,22 @@ 		f.src.value = 'http://video.google.com/googleplayer.swf?docId=' + v.substring('http://video.google.com/videoplay?docid='.length) + '&hl=en'; 		return 'flash'; 	}+	+	// Vimeo	+	if ( v.match(/^http:\/\/(?:www\.){0,1}vimeo\.com\/(\d+)$/) ) {+        f.width.value = '400';+        f.height.value = '321';+        f.src.value = 'http://vimeo.com/moogaloop.swf?clip_id=' + v.match(/^http:\/\/(?:www\.){0,1}vimeo\.com\/(\d+)$/)[1];+        return 'flash';+    }+	+	// Livestream+	if (v.match(/^http:\/\/(?:www\.){0,1}livestream\.com\/(\w+)$/)) {+		f.width.value = '560';+		f.height.value = '340';+		f.src.value = 'http://static.livestream.com/grid/LSPlayer.swf?channel=' + v.match(/^http:\/\/(?:www\.){0,1}livestream\.com\/(\w+)$/)[1];+		return 'flash';+	}  	for (i=0; i<fo.length; i++) { 		c = fo[i].split('=');