Hi Narendran,
Actually this is not a newly introduced behavior. I am able to replicate it even without the suggested improvement in my earlier reply.
Can you please test the following solution to resolve the issue:
<script>
$E.RangeHolder.prototype.set_html = function(content, title, setFocus, raiseSelChanged) {
var modeEnum = $T.EditModes;
if (this.get_mode() != modeEnum.Html)// If design or preview modes
{
if (title) {
var cmd = new $T.Editor.GenericCommand(title, this.get_contentWindow(), this);
this.executeCommand(cmd, setFocus);
}
this._initContentAreaHtml(content);
if (false != raiseSelChanged) { this.raiseEvent('selectionChange', Sys.EventArgs.Empty); }
// show empty messsage last since selectionChange would hide it otherwise
if (this.get_emptyMessage() && (!content || content.trim().length == 0) && this.get_mode() == modeEnum.Design) {
this._setEmptyMessage();
// move focus to toolbar to make sure user has to click in the editor to remove the empty message
$T.Editor.CommandList['SetToolFocus']('SetToolFocus', this, null);
}
} else {
// Set content in HTML MODE
this._setContentAsText(content);
}
}
</script>
Let me know the result.
Regards,
Rumen
Progress Telerik