When the Editor is configured by using tagHelpers and the configuration of the tools is on multiple lines additional new lines are added to the Editor content due to the tags used for the tool's configuration.
<button onclick="getValue()">get Value</button>
Test-1:<br /><br /><br /><br />
<kendo-editor name="test1" tag="div" >
<tools>
<tool name="viewHtml" />
</tools>
</kendo-editor>
<script>
function getValue() {
var editor1 = $("#test1").data("kendoEditor");
console.log(editor1.value())
};
</script>
The value of the editor has additional new lines. The additional lines could be observed also in the 'viewhtml' tool. (screencast)
There should be no additional new lines added to the Editor's content.
Configure the Editor on a single line
<kendo-editor name="test1" tag="div"><tools><tool name="viewHtml" /></tools></kendo-editor>