问题
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