UNPKG

@steroidsjs/ckeditor5

Version:

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

23 lines (19 loc) 671 B
/** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /* globals ClassicEditor, console, window, document */ import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config'; ClassicEditor .create( document.querySelector( '#toolbar-basic' ), { toolbar: { items: [ 'bold', 'italic', 'link', 'undo', 'redo', 'numberedList', 'bulletedList' ] }, cloudServices: CS_CONFIG } ) .then( editor => { window.editor = editor; } ) .catch( err => { console.error( err.stack ); } );