61
Views
7
Comments
Solved
[CKEditor 5] Not able to format or update the record using CKEditor 5
CK Editor 5
Forge asset by valantic LCS
Application Type
Reactive

Hi all,

I got a list of records and in that I got a field called Description so in description I am using CK editor for adding in HTMl format and while displaying I am converting back to text as it was stored previously. 

But while updating the record I got an edit icon and on click of that Icon I display popup and in that popup I got CKEditor. So while updating the data is fetched properly in CKEditor and I can format the content and update.

But this is happening only for one record, when I click another record the data is fetched properly but I am unable to format it or add different styles in it.

It is working for only first record but not for second record.

I don't have an .oml file to share but this is what is happening is there any solution for this Or is there any way to refresh the CKEditor/Container ID.


Regards,
Vin J 

2024-07-18 04-13-51
Muneera Shaik
Solution

sure, please have a look at the attached file

CK_Editor_Sample.oml
2024-05-08 06-29-37
Prince Aadil Khan Panwar

Hi Vin j

Are you using the identifier filter in the entity for the edit, if not that is only fetching the current one and updating this only. 

If this is not a problem then try to show the things how you are using. 

Hope this helps

thanks 

Prince

UserImage.jpg
VinayJangam

Hi Prince Aadil Khan Panwar,

Yes we are using Id to fetch data and data is fetching properly but I am not able to edit or format data second time in editor. For first time it is working fine.

Like eg: If the data fetched is having bold statement and I want to remove the bold and make it normal for first time it is working fine but second time for other record editor is not allowing me to make it UnBold or change the font.

2024-05-08 06-29-37
Prince Aadil Khan Panwar

Try to share the screenshot how you guys are saving the data. 

2024-07-18 04-13-51
Muneera Shaik

Hi Vin J,

Though I didn't get your issue properly. I would suggest you give a try on the CK Editor 4. Please find the Forge Component Attached - CK Editor 4 Reactive 

I have used this component in our project, it's absolutely working fine and can be edited and saved 'n' no of times without any issue.

Its quite simple and straight forward and let me know if you need sample OML 

Hope it helps.

UserImage.jpg
VinayJangam

Hi Muneera,

It will be great if you share the .oml file

Regards,

Vin J

2024-07-18 04-13-51
Muneera Shaik
Solution

sure, please have a look at the attached file

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