Commit 1953c00d by 丁伟

初始化提交

parent efee4b94
...@@ -12483,7 +12483,7 @@ UE.commands['preview'] = { ...@@ -12483,7 +12483,7 @@ UE.commands['preview'] = {
var w = window.open('', '_blank', ''), var w = window.open('', '_blank', ''),
d = w.document; d = w.document;
d.open(); d.open();
d.write('<!DOCTYPE html><html><head><meta charset="utf-8"/><script src='+this.options.UEDITOR_HOME_URL+'"ueditor.parse.js"></script><script>' + d.write('<!DOCTYPE html><html><head><meta charset="utf-8"/><script src="'+this.options.UEDITOR_HOME_URL+'ueditor.parse.js"></script><script>' +
"setTimeout(function(){uParse('div',{rootPath: '"+ this.options.UEDITOR_HOME_URL +"'})},300)" + "setTimeout(function(){uParse('div',{rootPath: '"+ this.options.UEDITOR_HOME_URL +"'})},300)" +
'</script></head><body><div>'+this.getContent(null,null,true)+'</div></body></html>'); '</script></head><body><div>'+this.getContent(null,null,true)+'</div></body></html>');
d.close(); d.close();
...@@ -17579,7 +17579,7 @@ UE.plugins['video'] = function (){ ...@@ -17579,7 +17579,7 @@ UE.plugins['video'] = function (){
switch (type){ switch (type){
case 'image': case 'image':
str = '<img ' + (id ? 'id="' + id+'"' : '') + ' width="'+ width +'" height="' + height + '" _url="'+url+'" class="' + classname.replace(/\bvideo-js\b/, '') + '"' + str = '<img ' + (id ? 'id="' + id+'"' : '') + ' width="'+ width +'" height="' + height + '" _url="'+url+'" class="' + classname.replace(/\bvideo-js\b/, '') + '"' +
' src=' + me.options.UEDITOR_HOME_URL+'"themes/default/images/spacer.gif" style="background:url('+me.options.UEDITOR_HOME_URL+'themes/default/images/videologo.gif) no-repeat center center; border:1px solid gray;'+(align ? 'float:' + align + ';': '')+'" />' ' src="' + me.options.UEDITOR_HOME_URL+'themes/default/images/spacer.gif" style="background:url('+me.options.UEDITOR_HOME_URL+'themes/default/images/videologo.gif) no-repeat center center; border:1px solid gray;'+(align ? 'float:' + align + ';': '')+'" />'
break; break;
case 'embed': case 'embed':
str = '<embed type="application/x-shockwave-flash" class="' + classname + '" pluginspage="http://www.macromedia.com/go/getflashplayer"' + str = '<embed type="application/x-shockwave-flash" class="' + classname + '" pluginspage="http://www.macromedia.com/go/getflashplayer"' +
...@@ -23410,7 +23410,7 @@ UE.plugin.register('webapp', function (){ ...@@ -23410,7 +23410,7 @@ UE.plugin.register('webapp', function (){
function createInsertStr(obj,toEmbed){ function createInsertStr(obj,toEmbed){
return !toEmbed ? return !toEmbed ?
'<img title="'+obj.title+'" width="' + obj.width + '" height="' + obj.height + '"' + '<img title="'+obj.title+'" width="' + obj.width + '" height="' + obj.height + '"' +
' src=' + me.options.UEDITOR_HOME_URL + '"themes/default/images/spacer.gif" _logo_url="'+obj.logo+'" style="background:url(' + obj.logo ' src="' + me.options.UEDITOR_HOME_URL + 'themes/default/images/spacer.gif" _logo_url="'+obj.logo+'" style="background:url(' + obj.logo
+') no-repeat center center; border:1px solid gray;" class="edui-faked-webapp" _url="' + obj.url + '" ' + +') no-repeat center center; border:1px solid gray;" class="edui-faked-webapp" _url="' + obj.url + '" ' +
(obj.align && !obj.cssfloat? 'align="' + obj.align + '"' : '') + (obj.align && !obj.cssfloat? 'align="' + obj.align + '"' : '') +
(obj.cssfloat ? 'style="float:' + obj.cssfloat + '"' : '') + (obj.cssfloat ? 'style="float:' + obj.cssfloat + '"' : '') +
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment