mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
issue 684: Workaround for a bug that XpressEditor changes YouTube embedding script
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9745 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aea75a5e49
commit
a8886b674b
1 changed files with 3 additions and 2 deletions
|
|
@ -3102,6 +3102,7 @@ xe.XE_EditingArea_WYSIWYG = $.Class({
|
|||
var sContent = this.doc.body.innerHTML;
|
||||
var sIR;
|
||||
|
||||
|
||||
if(this.oApp.applyConverter)
|
||||
sIR = this.oApp.applyConverter(this.sMode+"_TO_IR", sContent);
|
||||
else
|
||||
|
|
@ -5143,9 +5144,9 @@ xe.XE_XHTMLFormatter = $.Class({
|
|||
sContent = sContent.replace(/<(\w+) ([^>]+)>/g, function(m0,m1,m2){
|
||||
return '<'+m1+' '+
|
||||
m2.replace(regex_quote_attr, function(s0,s1,s2,s3){
|
||||
if (s1) return s1;
|
||||
if(s1) return s1;
|
||||
if(/^"/.test(s3)||/"$/.test(s3)) return s2+'='+s3;
|
||||
return s2+'="'+s3+'"';
|
||||
return s2+'="'+(s3||s2)+'"';
|
||||
}) + '>';
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue