22
Views
7
Comments
Solved
[CKEditor.Reactive] Text Editor how to store the data?
ckeditor-reactive
Reactive icon
Forge asset by Fábio Fantato

How do I stored the data where user typed in the text field to database and be retrieve at a later stage? 

The attached OML file is for reference.

If I type in normal letters, it is fine. With fronts such as background color or change of font size it gives an error.. 


I suppose the text editor saved the "text area" widget as text data type and I have set everything correctly.


TextEditorDemo.oml
2026-02-26 06-29-24
Rahul
 
MVP
Solution

Hi @Chin Kai ,
Can you check error log?

it content html tag also  with the text. 

like 
<div>ckeditor5<strong>Bold</strong></div>

UserImage.jpg
Chin Kai

Hi @Rahul Sahu , seems like only normal text can be saved.. if i were to add styling to it. It gives the error... 

2026-02-26 06-29-24
Rahul
 
MVP
Solution

@Chin Kai 

you need to increase attribute length of entity. 

You can store with tag also.


UserImage.jpg
Chin Kai

Hi @Rahul Sahu , thanks it works when I increase the text length. 
But is there a better way of doing it? What do you mean by store with tag? 


2026-02-26 06-29-24
Rahul
 
MVP

mean what content return  by ck editor you can insert in db.

when you want show this content inside table or widget you can use inject HTML component.


You can save in binary format if you don't want increase length. but you need addition functionality to show it on screen TextToBinary and BinaryToText function.


UserImage.jpg
Chin Kai

do you have an example where I can reference from? 
unable to find the function text to binary.. 

2026-02-26 06-29-24
Rahul
 
MVP

@Chin Kai 

See this screenshot. you need to take dependency from Binary Data extension .


2026-02-26 06-29-24
Rahul
 
MVP
Solution

@Chin Kai 

you need to increase attribute length of entity. 

You can store with tag also.


2026-02-26 06-29-24
Rahul
 
MVP
Solution

Hi @Chin Kai ,
Can you check error log?

it content html tag also  with the text. 

like 
<div>ckeditor5<strong>Bold</strong></div>

UserImage.jpg
Chin Kai

Hi @Rahul Sahu , seems like only normal text can be saved.. if i were to add styling to it. It gives the error... 

2026-02-26 06-29-24
Rahul
 
MVP
Solution

@Chin Kai 

you need to increase attribute length of entity. 

You can store with tag also.


UserImage.jpg
Chin Kai

Hi @Rahul Sahu , thanks it works when I increase the text length. 
But is there a better way of doing it? What do you mean by store with tag? 


2026-02-26 06-29-24
Rahul
 
MVP

mean what content return  by ck editor you can insert in db.

when you want show this content inside table or widget you can use inject HTML component.


You can save in binary format if you don't want increase length. but you need addition functionality to show it on screen TextToBinary and BinaryToText function.


UserImage.jpg
Chin Kai

do you have an example where I can reference from? 
unable to find the function text to binary.. 

2026-02-26 06-29-24
Rahul
 
MVP

@Chin Kai 

See this screenshot. you need to take dependency from Binary Data extension .


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