Minimalist wrapper for CkEditor. For more information visit CKEditor documentation.
- Download official packages from CKEditor page
- Import the packages to your content folder eg. wwwroot
- Register ScriptResource in DotvvmStartup.cs
- The resource name must be same like in sample (ckeditor-config)
config.Resources.Register("ckeditor", new ScriptResource(
new UrlResourceLocation("~/Content/Lib/ckeditor/ckeditor.js"))
{
Dependencies = new[] { "jquery" }
});
config.Resources.Register("ckeditor-config", new ScriptResource(
new UrlResourceLocation("~/Content/Lib/ckeditor/config.js"))
{
Dependencies = new[] { "ckeditor"}
});
You can do this:
<dc:CkEditorMinimal Html={value: HtmlText} />