| | |
| | | /**
|
| | | * $Id: editor_plugin_src.js 1037 2009-03-02 16:41:15Z spocke $
|
| | | * $Id: editor_plugin_src.js 1222 2009-09-03 17:26:47Z spocke $
|
| | | *
|
| | | * @author Moxiecode
|
| | | * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
| | |
| | | if (ed.settings.content_css !== false)
|
| | | ed.dom.loadCSS(url + "/css/content.css");
|
| | |
|
| | | if (ed.theme.onResolveName) {
|
| | | if (ed.theme && ed.theme.onResolveName) {
|
| | | ed.theme.onResolveName.add(function(th, o) {
|
| | | if (o.name == 'img') {
|
| | | each(lo, function(v, k) {
|
| | |
| | | _createImg : function(cl, n) {
|
| | | var im, dom = this.editor.dom, pa = {}, ti = '', args;
|
| | |
|
| | | args = ['id', 'name', 'width', 'height', 'bgcolor', 'align', 'flashvars', 'src', 'wmode', 'allowfullscreen', 'quality']; |
| | | args = ['id', 'name', 'width', 'height', 'bgcolor', 'align', 'flashvars', 'src', 'wmode', 'allowfullscreen', 'quality', 'data']; |
| | |
|
| | | // Create image
|
| | | im = dom.create('img', {
|
| | |
| | | delete pa.movie;
|
| | | }
|
| | |
|
| | | // No src try data
|
| | | if (!pa.src) {
|
| | | pa.src = pa.data;
|
| | | delete pa.data;
|
| | | }
|
| | |
|
| | | // Merge with embed args
|
| | | n = dom.select('.mceItemEmbed', n)[0];
|
| | | if (n) {
|