PasteFromOffice option in classic ckeditor 5

こ雲淡風輕ζ 提交于 2019-12-25 01:38:04

问题


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

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.

Does this error mean the final classic ck editor build(12.3.1) doesnt have this plugin?

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 logs 'alignment','Essentials','CKFinderUploadAdapter','Autoformat','BlockQuote','CKFinder','EasyImage','Image','ImageCaption','ImageStyle','ImageToolbar','ImageUpload','List','MediaEmbed','Paragraph','PasteFromOffice','Table','TableToolbar'

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


回答1:


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.: 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.



来源:https://stackoverflow.com/questions/57090810/pastefromoffice-option-in-classic-ckeditor-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!