| | |
| | | /**
|
| | | * $Id: editor_plugin_src.js 275 2007-05-01 15:35:08Z spocke $
|
| | | * $Id: editor_plugin_src.js 296 2007-08-21 10:36:35Z spocke $
|
| | | *
|
| | | * @author Moxiecode
|
| | | * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
|
| | |
| | | break;
|
| | | }
|
| | |
|
| | | // Force absolute URL
|
| | | if (!tinyMCE.getParam("relative_urls"))
|
| | | pl.src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], pl.src);
|
| | | // Convert the URL
|
| | | pl.src = tinyMCE.convertURL(pl.src, null, true);
|
| | |
|
| | | embedHTML = TinyMCE_MediaPlugin._getEmbed(ci, cb, mt, pl, attribs);
|
| | | } else {
|
| | |
| | | at = at.replace(/height:[^0-9]?[0-9]+%?[^0-9]?/g, "height:'" + attribs.height + "'");
|
| | |
|
| | | // Force absolute URL
|
| | | if (!tinyMCE.getParam("relative_urls")) {
|
| | | pl.src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'], pl.src);
|
| | | at = at.replace(new RegExp("src:'[^']*'", "g"), "src:'" + pl.src + "'");
|
| | | }
|
| | | pl.src = tinyMCE.convertURL(pl.src, null, true);
|
| | | at = at.replace(new RegExp("src:'[^']*'", "g"), "src:'" + pl.src + "'");
|
| | |
|
| | | embedHTML = '<script type="text/javascript">' + s + '({' + at + '});</script>';
|
| | | }
|