I have a simple tag helper for my editor. I am using the 'For' attribute because I am binding to a viewmodel. When the property for this viewmodel is loaded, by default, it loads in as null because its a new object. In other words, my ViewModelObject has a property called 'Content' and that is a string that is null when created. So, when I use this code below in my Razor view, it returns back an error that object is not initialized. But if I set that property to an empty string ("") then it will load fine.
So the question is, is this expected behavior or should it still load regardless? My opinion, it shouldn't matter if it is null or not. It should still give a blank editor.
Thanks
<
kendo-editor
for
=
"Content"
>
<
resizable
enabled
=
"true"
/>
<
content
>
</
content
>
<
tools
>
<
tool
name
=
"formatting"
/>
<
tool
name
=
"bold"
/>
<
tool
name
=
"italic"
/>
<
tool
name
=
"underline"
/>
<
tool
name
=
"justifyLeft"
/>
<
tool
name
=
"justifyCenter"
/>
<
tool
name
=
"justifyRight"
/>
<
tool
name
=
"insertUnorderedList"
/>
<
tool
name
=
"insertOrderedList"
/>
<
tool
name
=
"indent"
/>
<
tool
name
=
"createLink"
/>
<
tool
name
=
"tableEditing"
/>
</
tools
>
</
kendo-editor
>