We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi i followed your react-sample(vite-ckeditor5) proejct. but i have some problem like this -> (this.content.trim is not a function)
i don't know how to fix it :(
my source is
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold'; import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic'; import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline'; import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor'; import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials'; import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph'; import { CKEditor } from '@ckeditor/ckeditor5-react'; const editorConfig = { plugins: [Essentials, Paragraph, Bold, Italic, Underline], toolbar: ['bold', 'italic', 'underline'], }; const CkEditor = () => { return ( <>
Hello from CKEditor 5!
export default CkEditor;
and also i put this code in vite.config.ts
import ckeditor5 from '@ckeditor/vite-plugin-ckeditor5';
ckeditor5({ theme: require.resolve('@ckeditor/ckeditor5-theme-lark') }),
can you solve my problem?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
hi i followed your react-sample(vite-ckeditor5) proejct.
but i have some problem like this -> (this.content.trim is not a function)
i don't know how to fix it :(
my source is
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline';
import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
import { CKEditor } from '@ckeditor/ckeditor5-react';
const editorConfig = {
plugins: [Essentials, Paragraph, Bold, Italic, Underline],
toolbar: ['bold', 'italic', 'underline'],
};
const CkEditor = () => {
return (
<>
Editor:
<CKEditor
editor={ClassicEditor}
config={editorConfig}
data="
Hello from CKEditor 5!
"onReady={editor => {
console.log('Editor is ready to use!', editor);
}}
onChange={(event, editor) => {
const data = editor.getData();
console.log({ event, editor, data });
}}
onBlur={(event, editor) => {
console.log('Blur.', editor);
}}
onFocus={(event, editor) => {
console.log('Focus.', editor);
}}
/>
</>
);
};
export default CkEditor;
and also
i put this code in vite.config.ts
import ckeditor5 from '@ckeditor/vite-plugin-ckeditor5';
ckeditor5({ theme: require.resolve('@ckeditor/ckeditor5-theme-lark') }),
can you solve my problem?
The text was updated successfully, but these errors were encountered: