91
Views
4
Comments
[CKEditor 5] Found error : "editorndICe is not defined"
ckeditor-5
Reactive icon
Forge asset by Vincent Koning
Application Type
Reactive
Service Studio Version
11.14.2 (Build 56067)

I found an error : "editorndICe is not defined" (The detail as attachments) when web loading screen that use  forge asset : "CKEditor 5".

Please suggest the solution of this case to me.



1641451913681.jpeg
2020-09-21 08-42-47
Vincent Koning

Hi Jannarong,

I can't find any reference to this error anywhere. I also checked our logging to see if we also have this issue internally which is not the case. 

  1. Is editorndICe the name of the CKEditor component?
  2. Are you prefilling data into this component and if so, how?
  3. Are you using any other actions to configure or read the component like SetContent, SetEditorState or GetEditorState?

And finally, 

Can you show me, in-depth, on how you implemented this component? So not only the the configuration of the component but also method of the possible prefilled data. It sounds like a race condition where the data is already available or where actions are trying to configure the component but the component is not yet loaded.

You can prevent these race conditions to make use of the IsReady event that is triggered by the component when everything is done loading. Only then you can start to communicate with the component.

Greetings,

Vincent


UserImage.jpg
Jannarong Sittisupapong

Thank you for answer, but I can't still fix this problem. I will explain my scenario that I test in my application.


step 1 : I navigate to screen that it have the text editor (CKEditor).

step 2 : I navigate to previous screen suddenly by back button.


the error will be show something like "editorh2xds is not defined".

2020-09-21 08-42-47
Vincent Koning

Please add screenshots of how you implemented the ckeditor component. I do not have access to your environment (nor do I want to) and I really need more information to solve your issue. It sounds like you try to configure the component before it is initialized by the browser. Again, make sure you make use of the of the IsReady event.

UserImage.jpg
Jincheol Noh

I'm having the same problem.

It's been happening ever since I changed the parameter of name to editor+makeid(5) with the onilitialize action of the ckeditor5classic block and passed it to screen.


Currently, it seems to happen whenever I call eval($parameter.editorname) with js, but it also happens when I add customization to the script in the onready action of the component block, when I modify some screens within the screen, or when I make new changes to the ckeditorjs file through the ckeditor online builder.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.