【问题标题】:PasteFromOffice option in classic ckeditor 5经典ckeditor 5中的PasteFromOffice选项
【发布时间】:2019-11-27 04:05:39
【问题描述】:

我正在尝试在我的 angularjs 应用程序中设置经典的 ckeditor。我已经通过 npm 安装并且经典的 ckeditor 5 已经启动。

我正在尝试将粘贴内容复制到 ckeditor,但失败并显示错误提示 filerepository-no-upload-adapter: Upload adapter is not defined。

这个错误是否意味着最终的经典 ck 编辑器 build(12.3.1) 没有这个插件?

下面是我正在尝试的代码。

ClassicEditor.create( document.querySelector( '#editor' )
 )
.catch( error => {
console.error( error );
} );


ClassicEditor.builtinPlugins.map( plugin => console.log(plugin.pluginName) );

ClassicEditor.builtinPlugins.map 日志 'alignment','Essentials','CKFinderUploadAdapter','Autoformat','BlockQuote','CKFinder','EasyImage','Image','ImageCaption ','ImageStyle','ImageToolbar','ImageUpload','List','MediaEmbed','Paragraph','PasteFromOffice','Table','TableToolbar'

这是否意味着最终的经典 ck 编辑器构建(12.3.1)有这些插件?

【问题讨论】:

    标签: ckeditor ckeditor5


    【解决方案1】:

    filerepository-no-upload-adapter 表示您的编辑器实例没有定义任何上传适配器。了解如何定义上传适配器的最佳方法是遵循 Image upload overview 并使用(从而对其进行配置)官方上传适配器之一或 create a custom upload adapter 用于您的服务器。

    ps.:目前CKEditor 5 没有an official plugin for inserting images via a URL 存在一个问题。但是,有一个 guide

    【讨论】:

      猜你喜欢
      • 2018-04-06
      • 2018-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-05
      • 2017-02-17
      相关资源
      最近更新 更多