Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

rc-ckfulleditor

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-ckfulleditor

React Ckeditor 5 - easy to integrate

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
14
180%
Maintainers
1
Weekly downloads
 
Created
Source

CKEditor 5 - Easy to integrate CKEditor 5 for React

Thanks to CKEditor Team and Opeoluwa Iyi-Kuyoro.

npm version

The customize CKEditor 5 component to easily integrate for React.

CKEditor 5 screenshot

Documentation

Quick start

First, install the build from npm:

npm install --save rc-ckfulleditor

And use it in your ReactJS application:

import React from 'react'
import CKFullEditor from 'rc-ckfulleditor'

const index = () => {
  return (
    <CKFullEditor
      onChange={(event, editor) => {
        const data = editor.getData()
        console.log({ event, editor, data })
      }}
    />
  )
}

export default index

Config upload image via Cloudinary (use CloudinaryUnsigned of puff-puff)

import React from 'react'
import CKFullEditor from 'rc-ckfulleditor'

const index = () => {
  return (
    <CKFullEditor
      config={{
        // ...Ckeditor config
        cloudinary: {
          cloudName: YOUR_CLOUDINARY_NAME,
          uploadPreset: YOUR_UNSIGNED_UPLOAD_PRESET_NAME
        }
      }}
    />
  )
}

export default index

OR config upload image via your Upload Server (use CustomUpload of puff-puff)

import React from 'react'
import CKFullEditor from 'rc-ckfulleditor'

const index = () => {
  return (
    <CKFullEditor
      config={{
        // ...Ckeditor config
        customUpload: {
          url: YOUR_UPLOAD_URL
        }
      }}
    />
  )
}

export default index

See:

  • Installation for how to install this package and what it contains.
  • Basic API for how to create an editor and interact with it.
  • Configuration for how to configure the editor.
  • Creating custom builds for how to customize the build (configure and rebuild the editor bundle).
  • Puff-Puff Document for how to customize upload image adapter

Note: If you are planning to integrate CKEditor 5 deep into your application, it is actually more convenient and recommended to install and import the source modules directly (like it happens in ckeditor.js). Read more in the Advanced setup guide.

License

Licensed under the terms of GNU General Public License Version 2 or later. For full details about the license, please check the LICENSE.md file or https://ckeditor.com/legal/ckeditor-oss-license.

Keywords

ckeditor-full

FAQs

Package last updated on 07 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts