fanap_filemanager

1.0.1 • Public • Published

CKEditor 5 classic editor build

npm version Coverage Status Build Status

Ckeditor5 custom Classic-build with full list of availble plugins.

CKEditor 5 classic editor build screenshot

Documentation

See:

Quick start

First, install the build from npm:

npm install --save ckeditor5-build-full-toolbar

And use it in your website:

in your JavaScript application:

import React, { Component } from 'react';
//import the the main core
import { CKEditor } from '@ckeditor/ckeditor5-react';
//import the customized build
import ClassicEditor from 'ckeditor5-build-full-toolbar';
//import required persian font
import '@ckeditor/ckeditor5-build-classic/build/translations/en';

//adding the configuration to the build
const editorConfiguration = {
	// add language
    language: 'en',
	// customize default toolbar
   /* toolbar: [
	
	],
    */
};

class App extends Component {
    render() {
        return (
            <div className="App">
                <h2>ckeditor full version</h2>
                <CKEditor
					config = {editorConfiguration}
                    editor={ ClassicEditor }
                    data="<p>شروع کنید...</p>"
                    onReady={ editor => {
                        // You can store the "editor" and use when it is needed.
                        console.log( 'Editor is ready to use!', editor );
                    } }
                    onChange={ ( event, editor ) => {
                        const data = editor.getData();
                        console.log( { event, editor, data } );
                    } }
                    onBlur={ ( event, editor ) => {
                        console.log( 'Blur.', editor );
                    } }
                    onFocus={ ( event, editor ) => {
                        console.log( 'Focus.', editor );
                    } }
					onError={ ( event, editor ) => {
                        alert("error");
                    } }
                />
            </div>
        );
    }
}

export default App;

Note: This is a customized build of Classic-editor and most of the free plugins are included.

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.

Package Sidebar

Install

npm i fanap_filemanager

Weekly Downloads

1

Version

1.0.1

License

GPL-2.0-or-later

Unpacked Size

8.02 MB

Total Files

70

Last publish

Collaborators

  • amirdevss