- Install the
SeventyeightDigital.CKEditor4_Wysiwyg.Kentico.MVC
NuGet Package to your MVC Site - 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()
- 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
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)
}
}
There is one widget, CKEditor4 WYSIWYG Editor Widget
which allows for content entry via the page tab.
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
Can be used on any Kentico 12 SP site (hotfix 29 or above).