/gi,"");
theHTML = theHTML.replace(/<\/p>/gi,"");
if (theClass.indexOf(".") > -1)
theClass = ''+ theHTML +'';
else {
theClass = '<' + theClass + '>'+ theHTML +'' + theClass + '>';
}
currentRichTextDocument.selection.createRange().pasteHTML(theClass);
} else {
alert(parent.uiKeys['errors_stylesMustMarkBeforeSelect']);
}
}
function umbracoShowStyles(id) {
setRichTextObject(id)
var theHTML = currentRichTextObject.innerHTML;
if (theHTML.indexOf('styleMarkStart.gif') > 0) {
//document.all.showStyles.className = 'editorIcon';
theHTML = theHTML.replace(//gi,"")
theHTML = theHTML.replace(/
/gi,"")
} else {
if (theHTML.indexOf(' -1 || theHTML.indexOf(' -1) {
//document.all.showStyles.className = 'editorIconOn';
theHTML = theHTML.replace(//gi,"
")
theHTML = theHTML.replace(//gi,"")
theHTML = theHTML.replace(/<\/span>/gi,"
")
} else
alert(parent.uiKeys['errors_stylesNoStylesOnPage']);
}
currentRichTextObject.innerHTML = theHTML;
}