or
function
(id) {
var
child = $(
"#s-list-objectChild-"
+ id);
var
parent = child.closest(
"[id^='s-list-object-']"
);
if
(parent.isExpanded())
// Perform check here
doSomething();
else
doSomethingElse();
}
$(
"#editor"
).kendoEditor({
tools: [
"bold"
,
"italic"
,
"underline"
,
"strikethrough"
,
{
name:
"fontName"
,
items: [].concat(kendo.ui.Editor.prototype.options.fontName[8], [{ text:
"Arial"
, value:
"Arial"
}, { text:
"Verdana"
, value:
"Verdana"
}]),
},
{
name:
"fontSize"
,
items: [].concat(kendo.ui.Editor.prototype.options.fontSize[0], [{ text:
"13px"
, value:
"13px"
}, { text:
"15px"
, value:
"15px"
}])
},
"formatting"
,
"foreColor"
,
"backColor"
,
"superscript"
,
"subscript"
,
"justifyLeft"
,
"justifyCenter"
,
"justifyRight"
,
"justifyFull"
,
"insertUnorderedList"
,
"insertOrderedList"
,
"indent"
,
"outdent"
,
"createLink"
,
"unlink"
,
"viewHtml"
,
"createTable"
,
"addRowAbove"
,
"addRowBelow"
,
"addColumnLeft"
,
"addColumnRight"
,
"deleteRow"
,
"deleteColumn"
]
});