Open bipindubey-technoark opened 4 years ago
I have the same issue after upgrading to the latest version.
As mentioned in the changelog, we changed a default object that is exported by the package.
Use the following syntax in your application:
import { CKEditor } from '@ckeditor/ckeditor5-react';
// or
const { CKEditor } = require( '@ckeditor/ckeditor5-react' );
// or
require( '@ckeditor/ckeditor5-react' ).CKEditor
It's a rule to check the release information (like https://github.com/ckeditor/ckeditor5-react/releases/tag/v3.0.0 in this case) to check what kind of a breaking change was between two major versions before doing an update.
TLDR; The onInit
was renamed to onReady
with a little bit changed semantic.
As mentioned in the changelog, we changed a default object that is exported by the package.
Use the following syntax in your application:
import { CKEditor } from '@ckeditor/ckeditor5-react'; // or const { CKEditor } = require( '@ckeditor/ckeditor5-react' ); // or require( '@ckeditor/ckeditor5-react' ).CKEditor
This helps me, but the website didn't up-to-date, it takes a lot of time for me to fix this problem
Hi @regischen,
Did you mean https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/react.html? It's up to date, this section has been updated just after the release.
As mentioned in the changelog, we changed a default object that is exported by the package.
Use the following syntax in your application:
import { CKEditor } from '@ckeditor/ckeditor5-react'; // or const { CKEditor } = require( '@ckeditor/ckeditor5-react' ); // or require( '@ckeditor/ckeditor5-react' ).CKEditor
This solution should be included into the document. As you can see, the old document has not mentioned anything about this yet. https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/react.html#integrating-ckeditor-5-built-from-source
i am getting following issue while implementing @ckeditor/ckeditor5-react.
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Check the render method of
CustomCKEditor
.my code ....