Skip to content

emrahtokalak/Emrah.OrchardCore.CKEditor

Repository files navigation

Emrah.OrchardCore.CKEditor

Module for Orchard Core. CKEditor 5 is an ultra-modern JavaScript rich text editor.

Nuget

NuGet

Orchard Core Reference

This module is referencing a stable build of Orchard Core (1.8.2).

Credit

Based on https://github.com/ThisNetWorks/ThisNetWorks.OrchardCore.CKEditor project. Thanks to @deanmarcussen

Compiling Assets

How to build CKEditor.js

In order to build CKEditor you need Node.js. Packages are tested with [email protected] and [email protected]

# Navigate to main folder where ckeditor config is
cd src/Emrah.OrchardCore.CKEditor/Assets/scripts/ckeditor5-build-classic-orchardcore
# install packages
npm install
# build with webpack
npm run build

This will create a custom build in ~/wwwroot/scripts/ckeditor-classic-orchardcore directory.
If you wish to change filename or output directory you need to update webpack.config.js. After that you need to update HtmlBodyPart-CKEditor.Edit.cshtml and HtmlField-CKEditor.Edit.cshtml files with correct file path.