includes/clientside/tinymce/plugins/media/js/media.js
changeset 459 31c23016ab62
parent 335 67bd3121a12e
child 476 f26a69c40431
--- a/includes/clientside/tinymce/plugins/media/js/media.js	Fri Feb 22 12:51:53 2008 -0500
+++ b/includes/clientside/tinymce/plugins/media/js/media.js	Sun Feb 24 12:50:52 2008 -0500
@@ -16,7 +16,7 @@
 
 	fe = ed.selection.getNode();
 	if (/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) {
-		pl = "x={" + fe.title + "};";
+		pl = fe.title;
 
 		switch (ed.dom.getAttrib(fe, 'class')) {
 			case 'mceItemFlash':
@@ -63,7 +63,7 @@
 
 	// Setup form
 	if (pl != "") {
-		pl = eval(pl);
+		pl = tinyMCEPopup.editor.plugins.media._parse(pl);
 
 		switch (type) {
 			case "flash":
@@ -579,7 +579,7 @@
 		return;
 	}
 
-	pl = eval('x={' + pl + '};');
+	pl = tinyMCEPopup.editor.plugins.media._parse(pl);
 
 	if (!pl.src) {
 		p.innerHTML = '';