/gi, "");
mySelection = mySelection.replace(//gi," <p> ");
mySelection = mySelection.replace(/
/gi," ");
mySelection = mySelection.replace(/
/g,"
");
mySelection = mySelection.replace(/
/g,"
");
}
if(FCKBrowserInfo.IsIE && reset) {
hrefHtml = mySelection;
}
else {
hrefHtml = hrefStartHtml+mySelection+hrefEndHtml;
}
//////////////////////////////////////////////////////
// choose one of these two lines; in fckeditor 2.5 both lines can be skipped!!!
//
// hrefHtml = FCK.ProtectTags(hrefStartHtml) ; // needed because in fckeditor 2.4 protected tags only works with SetHTML
hrefHtml = ProtectTags( hrefHtml ) ; // needed because IE doesn't support and it breaks it.
/////////////////////////////////////////////////////
FCK.InsertHtml(hrefHtml);
}
FCKAbbr.InsertEdited = function(val) {
//mySelection = ( FCKBrowserInfo.IsIE) ? FCKSelection.GetSelectedHTML() : removeBR(FCKSelection.GetSelectedHTML());
val = val.replace(/ and it breaks it. Let's protect it.
if ( FCKBrowserInfo.IsIE ) {
var sTags = 'plugin' ;
var oRegex = new RegExp( '<(' + sTags + ')([ \>])', 'gi' ) ;
html = html.replace( oRegex, '', 'gi' ) ;
html = html.replace( oRegex, '<\/FCK:$1>' ) ;
}
return html ;
}