Here's my implemented solution
Text area
<textarea id="custInfoPriorPerformance" rows="10" cols="20" data-bind="kendoEditor: { value: AccountPlanVM.AccountPlan.PriorYearSummary }" > </textarea>
In the View Model Create an options variable with the control's Id, observable, and placeholder text
self.PlaceholderOptions =
{
CustomerInfoAccountBackground: ['#custInfoAccountBackground', self.AccountPlanVM.AccountPlan.AccountBackground, "<div style=\"" + self.PlaceholderStyle + "\">" + 'Placeholder Example Text' + "</div>"]
};
On load, I bind to the focus/blur of the editor box. And before posting the form back, I clear out placeholder text from the observables.
//Editor Placeholder methods
self.BindEditorPlaceholders = function() {
for (var propt in self.PlaceholderOptions) {
//Options array
var options = self.PlaceholderOptions[propt];
// get a reference to the Editor
var editor = $(options[0]).data("kendoEditor");
//Currently saved value
var currentValue = options[1]();
//If we don't have any text saved, inject placeholder
if (!currentValue) {
editor.value(options[2]);
}
//Attach Events to Editor Iframe
$(options[0]).siblings(".k-content").focus(options, self.EditorFocus);
$(options[0]).siblings(".k-content").blur(options, self.EditorBlur);
}
};
self.EditorFocus = function(e) {
//Options array
var options = e.data;
// get a reference to the Editor
var editor = $(options[0]).data("kendoEditor");
//Current editor value
var htmlValue = editor.value();
if (htmlValue == options[2]) {
//Clear editor value
editor.value('');
}
};
self.EditorBlur = function (e) {
//Options array
var options = e.data;
// get a reference to the Editor
var editor = $(options[0]).data("kendoEditor");
//Current editor value
var htmlValue = editor.value();
if (htmlValue == '') {
//Set editor value back to placeholder
editor.value(options[2]);
}
};
self.CleanEditorPlaceholders = function() {
for (var propt in self.PlaceholderOptions) {
//Options array
var options = self.PlaceholderOptions[propt];
// get a reference to the Editor
var editor = $(options[0]).data("kendoEditor");
//Currently saved value
var currentValue = options[1]();
//If the current text is the placeholder, wipe it out
if (currentValue == options[2]) {
options[1]('');
}
}
};