I tried building CKEditor in development mode ( webpack -mode development) and examining the ckeditor.js file to try to export Editor, but the file has over 100,000 lines of code and I am totally lost. The CKEditor issue queue has a thread on a lack of documentation on issues with Vite, but there's nothing in particular about how to resolve this issue. Src/components/contentTypeCard/CKEditorInput.tsx 'default' is not exported by ckeditor5/build/ckeditor.js, imported by Now, after configuring Vite, when I run npm run build, I get the following error: The CKEditor build command is webpack -mode production. Import Editor from 'ckeditor5-custom-build/build/ckeditor' īefore building my app, I build the custom CKEditor like this: They even have an official online builder that does all the work for you : ckeditor online builder Once you created it, you have to import the editor just as you have done before on line 2 but instead of writing from 'ckeditor/ckeditor5-build-classic' you have to write from 'adress of the build folder of your personnal build'. Import from eslint-disable-next-line Ckeditor does not supply TypeScript typings. eslint-disable-next-line Ckeditor does not supply TypeScript typings. Some of the reasons for creating custom builds are: 1. Originally, I made a CKEditor 5 Custom Build and set it up in a React app like this: import React from 'react' Although the CKEditor 5 WYSIWYG editor comes with handy predefined builds, sometimes these predefined bundled versions are not enough and a need for more customized builds arises. However, Ionic now supports Vite and I am attempting to migrate my app from CRA to Vite. For the past several months, I've been building my app with Create React App.
0 Comments
Leave a Reply. |