<script>
var
BLOCK_ELEMENTS =
"div,table,ol,ul,h1,h2,h3,h4,h5,h6,hr"
;
var
PARAGRAPH =
"p"
;
var
ANCHOR =
"a"
;
var
browser = Telerik.Web.Browser;
var
$T = Telerik.Web.UI;
var
$E = $T.Editor;
$E.NestedElementsFix.prototype.applyFix =
function
(elements) {
alert(1)
var
that =
this
;
that.blockElements = elements || that.getBlockElements();
// for example comment out some of the functions
//that._fixNestedParagraphs();
//that._unwrapBlockElements();
}
//or override the functionality inside the _fixNestedParagraphs one
$E.NestedElementsFix.prototype._fixNestedParagraphs =
function
() {
var
context =
this
.context;
var
paragraphs =
null
;
if
(utils.isEditorContentArea(context)) {
paragraphs = context.getElementsByTagName(PARAGRAPH);
}
else
{
var
parentBlockElement =
this
._getParentBlockElement(context);
if
(utils.isTag(parentBlockElement, PARAGRAPH)) {
paragraphs = [parentBlockElement];
}
}
if
(!paragraphs) {
return
;
}
for
(
var
i = paragraphs.length - 1; i >= 0; i--) {
var
parentParagraph = paragraphs[i],
$childParagraphs =
this
._getParagraphs(parentParagraph);
for
(
var
j = $childParagraphs.length - 1; j >= 0; j--) {
this
._unwrapElement($childParagraphs[j], parentParagraph);
}
if
($childParagraphs.length && utils.isNodeEmptyRecursive(parentParagraph)) {
this
._removeBlockElement(parentParagraph);
}
}
}
</script>
<telerik:RadEditor ID=
"RadEditor1"
runat=
"server"
>
<Content>
<blockquote>
<p>Quote Text</p>
</blockquote>
<cite>Quote Author</cite>
</Content>
</telerik:RadEditor>