经典ckeditor 5中的PasteFromOffice选项 [英] PasteFromOffice option in classic ckeditor 5

查看:761
本文介绍了经典ckeditor 5中的PasteFromOffice选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to setup classic ckeditor in my angularjs application. I have installed via npm and classic ckeditor 5 is up.

我正在尝试将粘贴内容复制到ckeditor,但失败,并显示错误消息 filerepository-no -upload-adapter:未定义上载适配器。

I am trying to copy paste contents to ckeditor but it is failing with the error saying filerepository-no-upload-adapter: Upload adapter is not defined.

此错误是否表示最终的经典ck编辑器内部版本(12.3.1)没有这个插件?

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

Below is the code which I am trying.

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'

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

这是否意味着最终的经典ck编辑器版本(12.3.1)具有这些插件? / strong>

Does this mean the final classic ck editor build(12.3.1) have these plugins?

推荐答案

filerepository-no-upload-adapter 表示您的编辑器实例未定义任何上传适配器。了解定义上传适配器的最佳方法是遵循图像上传概述并使用(因此进行配置)官方上传适配器之一或为您的服务器创建自定义上传适配器

the filerepository-no-upload-adapter means that your editor instance does not have any upload adapter defined. The best way to learn about defining an upload adapter is to follow the Image upload overview and either use (thus configure it) one of the official upload adapters or create a custom upload adapter for your server.

ps 。:当前存在一个问题CKEditor 5还没有通过URL插入图像的官方插件。但是,有一个指南

ps.: There's an issue that currently the CKEditor 5 have not an official plugin for inserting images via a URL. However, there's a guide for that.

这篇关于经典ckeditor 5中的PasteFromOffice选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆