Dec 10, 2018, 12:07 PM
[CLOSED] CKEditor support
Hi Team,
We are using Ext.Net 4.5 along with MVC. Could you please let us know integration of CK Editor is supported or not. We tried following code to render CKEditor in our MVC4 test application and CKEditor is not rendering. Appreciate your help.
We are using Ext.Net 4.5 along with MVC. Could you please let us know integration of CK Editor is supported or not. We tried following code to render CKEditor in our MVC4 test application and CKEditor is not rendering. Appreciate your help.
@{
ViewBag.Title = "Editor Overview - Ext.NET MVC Examples";
Layout = "~/Views/Shared/_Layout.cshtml";
var X = Html.X();
}
@(Html.X().ResourceManager())
<script src="~/Scripts/ckeditor/ckeditor.js"></script>
<script>
// Replace the <textarea id="editor1"> with a CKEditor
// instance, using default configuration.
CKEDITOR.replace('editor1');
</script>
<title>A Simple Page with CKEditor</title>
@using (Html.BeginForm("ckeditor", "Home", FormMethod.Post, new { style="margin-top:100px;"}))
{
@Html.Label("The Badboy Web Editor")<br/>
@*@Html.TextArea("editorplace", new { @id = "editor1" })
<input type="submit" value="Submit" id="btnSubmit"/>
<script>
CKEDITOR.replace('editor1');
</script>*@
}
@section example
{
@(X.Panel()
.Layout(LayoutType.Fit)
.Items(X.TabPanel()
.Border(false)
.Defaults(d => d.Add(new Parameter("BodyStyle", "padding:10px;", ParameterMode.Value)))
.Items(
X.TextArea().Name("editorplace").ID("editor1")
)
)
)
}
Last edited by fabricio.murta; Feb 01, 2019 at 6:49 PM.
Reason: no feedback from the user (and community) in 7+ days