ckeditor5 добавить изображение не работает, мне не хватает плагина или? - PullRequest
0 голосов
/ 03 августа 2020

, когда я нажимаю на изображение и добавляю. изображение не появляется. что-то не хватает?

enter image description here

import React, { Component, Fragment, useEffect } from 'react';
import CKEditor from '@ckeditor/ckeditor5-react';
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';

const Editor = ({onEditorStateChange, defaultValue}) => {
    const onChange = (event, editor ) => {
      const data = editor.getData();
      console.log(  data  );
      onEditorStateChange(data)
    };

    const onBlur = (event, editor) => {
      console.log( 'Blur.', editor );
    };

    const onFocus = (event, editor) => {
      console.log( 'Focus.', editor );
    };

    const onInit = (editor) => {
      // editor
      // You can store the "editor" and use when it is needed.
      console.log( 'Editor is ready to use!', editor );
    };
    const editorConfiguration = {
       removePlugins: [ 'MediaEmbed' ],
    };
    return (
         {/ *  Использование сборки CKEditor 5 в React  * /} ); } экспортировать редактор по умолчанию; 
...