summaryrefslogtreecommitdiff
path: root/program/js/tiny_mce/plugins/media/editor_plugin_src.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-12-15 08:48:45 +0000
committeralecpl <alec@alec.pl>2009-12-15 08:48:45 +0000
commit58fb6502e3550e59afa8799d36dfce61a18f8b1b (patch)
tree821b5ac61675cada8977d956262ffb5e9b90a2fb /program/js/tiny_mce/plugins/media/editor_plugin_src.js
parent463a03112260ecf39818eac09905f41d8e84ced7 (diff)
- Updated TinyMCE to 3.2.7
Diffstat (limited to 'program/js/tiny_mce/plugins/media/editor_plugin_src.js')
-rw-r--r--program/js/tiny_mce/plugins/media/editor_plugin_src.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/program/js/tiny_mce/plugins/media/editor_plugin_src.js b/program/js/tiny_mce/plugins/media/editor_plugin_src.js
index faa0cf730..2692e0a23 100644
--- a/program/js/tiny_mce/plugins/media/editor_plugin_src.js
+++ b/program/js/tiny_mce/plugins/media/editor_plugin_src.js
@@ -1,5 +1,5 @@
/**
- * $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.
@@ -61,7 +61,7 @@
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) {
@@ -341,7 +341,7 @@
_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', {
@@ -372,6 +372,12 @@
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) {