UNPKG

ckeditor5-image-upload-base64

Version:

The development environment of CKEditor 5 – the best browser-based rich text editor.

46 lines (38 loc) 1.12 kB
/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module ckfinder/ckfinderediting */ import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; import ImageEditing from '@ckeditor/ckeditor5-image/src/image/imageediting'; import LinkEditing from '@ckeditor/ckeditor5-link/src/linkediting'; import Notification from '@ckeditor/ckeditor5-ui/src/notification/notification'; import CKFinderCommand from './ckfindercommand'; /** * The CKFinder editing feature. It introduces the {@link module:ckfinder/ckfindercommand~CKFinderCommand CKFinder command}. * * @extends module:core/plugin~Plugin */ export default class CKFinderEditing extends Plugin { /** * @inheritDoc */ static get pluginName() { return 'CKFinderEditing'; } /** * @inheritDoc */ static get requires() { return [ Notification, ImageEditing, LinkEditing ]; } /** * @inheritDoc */ init() { const editor = this.editor; editor.commands.add( 'ckfinder', new CKFinderCommand( editor ) ); } }