When a page with
obout MVC HTML Editor component is loaded, client-side
MVC HTML Editor object is available.
Indeed it is a wrapper for the client-side object used for the HTML Editor (ASP.NET 2.0).
You can get this inner client-side object using the
HTMLEditor property:
<% Html.Obout(new Obout.Mvc.HTMLEditor.Editor("editor1", Page)
{
}); %>
...
<script type="text/JavaScript">
function mySomeFunction() {
var innerEditor = editor1.HTMLEditor;
}
</script>
All methods of this inner client-side object (HTML Editor (ASP.NET 2.0)) such as
InsertHTML,
SurroundHTML etc. are avilable here.
function mySomeFunction() {
var innerEditor = editor1.HTMLEditor;
innerEditor.InsertHTML("<a href='mailto://support@obout.com'>Obout support</a>");
}
The full information about the client-side object used for the HTML Editor (ASP.NET 2.0) you can find at this
documenation page.