/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /** * Base Paragraph Block for the Editor.js. * Represents simple paragraph * * @author CodeX (team@ifmo.su) * @copyright CodeX 2018 * @license The MIT License (MIT) * @version 2.0.0 */ /** * CodeTool for Editor.js * * @author CodeX (team@ifmo.su) * @copyright CodeX 2018 * @license The MIT License (MIT) * @version 2.0.0 */ /** * Delimiter Block for the Editor.js. * * @author CodeX (team@ifmo.su) * @copyright CodeX 2018 * @license The MIT License (MIT) * @version 2.0.0 */ /** * Header block for the Editor.js. * * @author CodeX (team@ifmo.su) * @copyright CodeX 2018 * @license The MIT License (MIT) * @version 2.0.0 */ /** * Image Tool for the Editor.js * @author CodeX * @license MIT * @see {@link https://github.com/editor-js/image} * * To developers. * To simplify Tool structure, we split it to 4 parts: * 1) index.js — main Tool's interface, public API and methods for working with data * 2) uploader.js — module that has methods for sending files via AJAX: from device, by URL or File pasting * 3) ui.js — module for UI manipulations: render, showing preloader, etc * 4) tunes.js — working with Block Tunes: render buttons, handle clicks * * For debug purposes there is a testing server * that can save uploaded files and return a Response {@link UploadResponseFormat} * * $ node dev/server.js * * It will expose 8008 port, so you can pass http://localhost:8008 with the Tools config: * * image: { * class: ImageTool, * config: { * endpoints: { * byFile: 'http://localhost:8008/uploadFile', * byUrl: 'http://localhost:8008/fetchUrl', * } * }, * }, */ /** * Raw HTML Tool for CodeX Editor * * @author CodeX (team@ifmo.su) * @copyright CodeX 2018 * @license The MIT License (MIT) * @version 2.0.0 */