如何将按键事件添加到CKeditor5?

问题描述

我需要更改在示例中键入的字符 当用户键入“ a”时,我希望在编辑器中键入“ scal”。

下面是我的代码

  ```  <CKEditor
      editor={ClassicEditor}
      onInit={editor => {

        // Connect the upload adapter using code below 
        editor.plugins.get("FileRepository").createUploadAdapter = function (loader) {
          return new MyUploadAdapter(loader);
        };
        console.log("Editor is ready to use!",editor);
      }}
      onChange={(event,editor) => {
      }}
    />```

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)