Skip to content

quanhieu/playWithCkeditor5

Repository files navigation

Play with Ckeditor5 (Without build-in your source)

Feature

  • Rich text editor
    • Preview editor content
  • Upload images/file as Base64
    • Preview image
  • Parse HTML into react app

Environment suggestion

  next
  @ckeditor/ckeditor5-react
  styled-components
  @styled-jsx/plugin-sass
  html-react-parser
  react-hook-form

Start

  1. Customize and build your CKEditor 5 here

  2. Download .zip

  3. Install

yarn
# or
npm install
  1. Build it (For me, I rename folder build as "custom-build-ckeditor")
yarn build
# or
npm run build
  1. Copy build folder to your source

  2. Import

  With NEXTJS as:
  import dynamic from 'next/dynamic'

  const EditorCustom = dynamic(() => import('./ckeditor5'), {
    ssr: false,
  })
  1. Use in your component
  <EditorCustom/>
  1. Update toolbar
  config={{
    placeholder: '.',
    removePlugins: ['Markdown'],
    toolbar: fatherToolbar,
    image: imageToolbar,
    table: tableToolbar,
  }}

Config values is in config.js

Note

I think you should to make your own a cup of coffee. Because of in the first time start your source, which is include custom-editor. You will be waiting for longggggggg time.

If want to play with build-in source

Here is my repo

Ckeditor4

Ckeditor5

Releases

No releases published

Packages

No packages published