This question is locked. New answers and comments are not allowed.
The MVC Editor control emit a piece of javascript that looks like
<script type="text/javascript">document.getElementById('editor-value').style.display='none'</script>
I am trying to use the Editor within a JQuery Template ..(see below). No matter what I do, I end up with a script tag inside a script tag. Can the MVC Editor be used within a JQuery template at all? If yes, how do we do it?
<script id="Template_InlineTextLinks" type="text/x-jquery-tmpl">
<%=
Html.Telerik().Editor()
.Name("EditorForTextLinks")
.Tools(tools=>tools
.Clear()
.Bold()
.Italic()
.Underline()
.CreateLink()
.Unlink()
.InsertUnorderedList()
)
.ClientEvents(events => events.OnChange("Editor_onChange"))
%>
</script>
<script type="text/javascript">document.getElementById('editor-value').style.display='none'</script>
I am trying to use the Editor within a JQuery Template ..(see below). No matter what I do, I end up with a script tag inside a script tag. Can the MVC Editor be used within a JQuery template at all? If yes, how do we do it?
<script id="Template_InlineTextLinks" type="text/x-jquery-tmpl">
<%=
Html.Telerik().Editor()
.Name("EditorForTextLinks")
.Tools(tools=>tools
.Clear()
.Bold()
.Italic()
.Underline()
.CreateLink()
.Unlink()
.InsertUnorderedList()
)
.ClientEvents(events => events.OnChange("Editor_onChange"))
%>
</script>