2.1.3 • Published 6 months ago

ckeditor5-luongthanhnhi-custom-build v2.1.3

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
6 months ago

###Installation: Using npm:

$ npm install ckeditor5-luongthanhnhi-custom-build

Using yarn:

$ yarn add ckeditor5-luongthanhnhi-custom-build

###Rebuilding editor:

$ npm run build
$ yarn build

How to use, Ex:

import ClassicEditor from "ckeditor5-luongthanhnhi-custom-build/build/ckeditor";
import { CKEditor } from "@ckeditor/ckeditor5-react";

const CkeditorComponent = ({ name, label, rules, data, onFocus, ...props }) => {
  const config = {
    extraPlugins: [uploadPlugin],
  };

  function uploadAdapter(loader) {
    return {
      upload: async () => {
        //Handle upload
      },
    };
  }

  function uploadPlugin(editor) {
    editor.plugins.get("FileRepository").createUploadAdapter = (loader) => {
      return uploadAdapter(loader);
    };
  }

  return (
    <CKEditor
      editor={ClassicEditor}
      data={data}
      config={config}
      onFocus={onFocus}
      {...props}
    />
  );
};

export default CkeditorComponent;
2.1.2

6 months ago

2.1.1

9 months ago

2.1.3

6 months ago

0.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.1

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.1.2

1 year ago

0.0.1

1 year ago