Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

TimLemke/CKEditor4_Wysiwyg

Repository files navigation

CKEditor4 Wysiwyg Editor

Installation

  1. Install the SeventyeightDigital.CKEditor4_Wysiwyg.Kentico.MVC NuGet Package to your MVC Site
  2. For ease of integration and to prevent CSS styling conflicts, a link to the CDN for CKEditor 4 must be placed before @HTML.Kentico().PageBuilderScripts() CKEditor 4 CDN include image
  3. If you wish to configure the CKEditor 4 toolbar, you can do so by editing the currently commented out toolbar configuration option found in CKEditor4-InlineEditor.ks Toolbar options image

Inline Editor

You can add the Inline Editor to your own widget creations by following the example below:

@if (Context.Kentico().PageBuilder().EditMode)
{
    Html.RenderPartial("InlineEditors/_CKEditor4_WysiwygInlineEditor", new CKEditor4_WysiwygViewModel
    {
        PropertyName = nameof(Model.Properties.Html),
        Html = Model.Properties.Html
    });
}
else
{
    if (Model.Properties.Html != "" && Model.Properties.Html != null)
    {
        @Html.Kentico().ResolveUrls(Model.Properties.Html)
    }
}

Widget

There is one widget, CKEditor4 WYSIWYG Editor Widget which allows for content entry via the page tab.

CKEditor4 Widget

Contributions, bug fixes and license

Feel free to Fork and submit pull requests to contribute.

You can submit bugs through the issue list and I will get to them as soon as I can, unless you want to fix it yourself and submit a pull request.

This is free to use and modify.

Check the License.txt for License information

Compatability

Can be used on any Kentico 12 SP site (hotfix 29 or above).

About

Kentico MVC - Wysiwyg Widget (Editable Text) and Inline Editor using CKEditor 4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published