117
Views
15
Comments
Solved
[CKEditor.Reactive] Why I'm getting two ckEditors on one screen.
ckeditor-reactive
Reactive icon
Forge asset by Fábio Fantato
Application Type
Reactive

I've placed the ckEditor in my block but it is showing two Ckeditor.

2021-10-08 05-01-12
Deepa Tiwari
Solution

there is one possible way - 

The TestBlock is used two times on screen thats why two ckEditor show.

You can check with browser console if two id generate with same name.
or try to create one demo application and use this Editor if same problem happing than something in js issue.
But I am also using in my project but its working fine.

2021-10-08 05-01-12
Deepa Tiwari

Hi @Saransh ,

Can you post your code here so we can check.

Have you checked your code you are using single time of block in screen?



UserImage.jpg
Saransh

here I've placed it.

2021-10-08 05-01-12
Deepa Tiwari
UserImage.jpg
Saransh

no deepa that is something confidential. But any idea why it is happening?

2021-10-08 05-01-12
Deepa Tiwari
Solution

there is one possible way - 

The TestBlock is used two times on screen thats why two ckEditor show.

You can check with browser console if two id generate with same name.
or try to create one demo application and use this Editor if same problem happing than something in js issue.
But I am also using in my project but its working fine.

UserImage.jpg
Saransh

Yes you were right @Deepa Tiwari



Now how will I remove that???

UserImage.jpg
Saransh

It is solved now, issue was - I was using ckEditor in if condition. Now I've placed it seperately.

@Deepa Tiwari thanks for your inputs.

2021-10-08 05-01-12
Deepa Tiwari

 cool. 

UserImage.jpg
Miguel Sampaio

Hi @Saransh , I'm facing the same issue you were, but my ckEditor isn't enclosed in any if.


Could you provide more details on your solution please?

UserImage.jpg
Saransh

if it is possible can u pls share your OML?

UserImage.jpg
Miguel Sampaio

Unfortunately I cannot. Anyway and going forward, I had to make changes on the config script to get rid of the second ckEditor. Thanks anyway!

UserImage.jpg
Saransh

Ok fine but changing the config of CKeditor will not resolve your problem. 

Some CSS of your application might be overriding the CK editor'CSS. 

2023-12-04 02-05-26
Anuj Chandrakant Malani

Hi Miguel, can you please share the change you made? I am facing the same issue with CK Editor

UserImage.jpg
Haripriya Nandhakumar

Hi Anuj ,Iam facing the same issue in CKeditor. Is this issue  fixed in your end ?

UserImage.jpg
Nada Ramadan

Issue Resolved by Cleaning Up Existing CKEditor Instances Before Reload

I encountered an issue where the CKEditor was being initialized multiple times, particularly when switching languages or reloading the editor configuration. This resulted in duplicate instances and unexpected behavior.

To resolve this, I updated the JavaScript in the OnReady handler of the CKEditor with the attached txt file to destroy any existing instance before initializing a new one.




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