ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.65k stars 3.71k forks source link

Cannot read properties of null (reading 'editing') for open MathType in Online Builder with React #15380

Open AliRezaHosseiniOfficial opened 1 year ago

AliRezaHosseiniOfficial commented 1 year ago

πŸ“ Provide detailed reproduction steps (if any)

1- create a custom build with online builder 2- download and add to root project and install npm with command npm i file:./plugins/ckeditor5 3- npm i ckeditor5/react 4- my codes in a component:

import {CKEditor} from "@ckeditor/ckeditor5-react";
import Editor from "ckeditor5-custom-build/build/ckeditor"

<CKEditor
                            editor={Editor}
                            config={editorConfig}
                            onChange={questionHandler}
                            onReady={questionEditorClass}
                        />

βœ”οΈ Expected result

❌ Actual result

when open MathType or ChemType without problem but open for first time have error in chrome:

image

when open MathType or ChemType without problem but open for first time have error in firefox:

image

πŸ“ƒ Other details


If you'd like to see this fixed sooner, add a πŸ‘ reaction to this post.

Witoso commented 1 year ago

Could you share what setup do you have? Vite, CRA, webpack?

AliRezaHosseiniOfficial commented 1 year ago

Could you share what setup do you have? Vite, CRA, webpack?

My React project setup with CRA

Witoso commented 1 year ago

I think you have some custom code that tries to access the editor. Could you share it?

AliRezaHosseiniOfficial commented 12 months ago

I think you have some custom code that tries to access the editor. Could you share it?

I don't have custom code and i seem there is problem in MathType when i use online builder.