Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 941 Bytes

File metadata and controls

31 lines (23 loc) · 941 Bytes

CkEditorMinimal

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"}
            });

Sample 1: Usage

You can do this:

<dc:CkEditorMinimal Html="{value: HtmlText}" />