Hi,
In our application we have template which contains paragraph with span, which is responsible for holding list of selected files to upload. E.g.:
<
p
>
<
span
class
=
"filenames-holder"
></
span
>
</
p
>
But after we put this template into editor it turned out that this paragraph is empty. I found that editor replaces all 'empty' paragraph's contents with some other data:
_fillEmptyElements:
function
(body) {
// fills empty elements to allow them to be focused
$(body).find(
"p"
).each(
function
() {
var
p = $(
this
);
if
(/^\s*$/g.test(p.text()) && !p.find(
"img,input"
).length) {
var
node =
this
;
while
(node.firstChild && node.firstChild.nodeType != 3) {
node = node.firstChild;
}
if
(node.nodeType == 1 && !dom.empty[dom.name(node)]) {
node.innerHTML = kendo.ui.editor.emptyElementContent;
}
}
});
},
Is there an option to prevent Editor from doing it?
Radosław Maziarka