includes/clientside/tinymce/plugins/media/js/media.js
changeset 459 31c23016ab62
parent 335 67bd3121a12e
child 476 f26a69c40431
equal deleted inserted replaced
458:c433348f3628 459:31c23016ab62
    14 	tinyMCEPopup.resizeToInnerSize();
    14 	tinyMCEPopup.resizeToInnerSize();
    15 	f = document.forms[0]
    15 	f = document.forms[0]
    16 
    16 
    17 	fe = ed.selection.getNode();
    17 	fe = ed.selection.getNode();
    18 	if (/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) {
    18 	if (/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) {
    19 		pl = "x={" + fe.title + "};";
    19 		pl = fe.title;
    20 
    20 
    21 		switch (ed.dom.getAttrib(fe, 'class')) {
    21 		switch (ed.dom.getAttrib(fe, 'class')) {
    22 			case 'mceItemFlash':
    22 			case 'mceItemFlash':
    23 				type = 'flash';
    23 				type = 'flash';
    24 				break;
    24 				break;
    61 	if (isVisible('filebrowser'))
    61 	if (isVisible('filebrowser'))
    62 		document.getElementById('src').style.width = '230px';
    62 		document.getElementById('src').style.width = '230px';
    63 
    63 
    64 	// Setup form
    64 	// Setup form
    65 	if (pl != "") {
    65 	if (pl != "") {
    66 		pl = eval(pl);
    66 		pl = tinyMCEPopup.editor.plugins.media._parse(pl);
    67 
    67 
    68 		switch (type) {
    68 		switch (type) {
    69 			case "flash":
    69 			case "flash":
    70 				setBool(pl, 'flash', 'play');
    70 				setBool(pl, 'flash', 'play');
    71 				setBool(pl, 'flash', 'loop');
    71 				setBool(pl, 'flash', 'loop');
   577 	if (pl == '') {
   577 	if (pl == '') {
   578 		p.innerHTML = '';
   578 		p.innerHTML = '';
   579 		return;
   579 		return;
   580 	}
   580 	}
   581 
   581 
   582 	pl = eval('x={' + pl + '};');
   582 	pl = tinyMCEPopup.editor.plugins.media._parse(pl);
   583 
   583 
   584 	if (!pl.src) {
   584 	if (!pl.src) {
   585 		p.innerHTML = '';
   585 		p.innerHTML = '';
   586 		return;
   586 		return;
   587 	}
   587 	}