52
Views
5
Comments
Solved
[CKEditor.Reactive] Not able to get input widget ID
ckeditor-reactive
Reactive icon
Forge asset by Fábio Fantato
Application Type
Reactive

Hi Community,

I am using CKEditor for my text area inputs. On the screen, i am able to bind the input widgets together inside a list widget.

But when i am trying to 'GetDataFromEditor' in my Save action, I am not able to get the input ID.


Where did i went wrong?

Thank you.

2021-08-04 12-19-54
Mayank Dharmpurikar
Solution

Hi,

It doesn't matter whether you use container or ListItem inside the list. 

The only thing here is, we need to retrieve the Text area id to pass it to the GetDataFromEditor() to get the HTML.

I have updated the OML with the ListItem for your reference.

CkEditorDemo.oml
2021-08-04 12-19-54
Mayank Dharmpurikar

Hi, 

I have created one simple demo just to recreate your scenario.

I have one list and inside that list I created the text area which is binded with the CK Editor.

and onclick of save button I loop through the list and retrieve the value of all Text area (Editor) and saved in another list.

OML is attached for your reference.

CkEditorDemo.oml
2022-05-01 03-47-53
Jun Mun Chan

Hi Mayank,

Does it means that the ListItem has to be removed, and we use a container instead?

Thank you

2021-08-04 12-19-54
Mayank Dharmpurikar
Solution

Hi,

It doesn't matter whether you use container or ListItem inside the list. 

The only thing here is, we need to retrieve the Text area id to pass it to the GetDataFromEditor() to get the HTML.

I have updated the OML with the ListItem for your reference.

CkEditorDemo.oml
2022-05-01 03-47-53
Jun Mun Chan

Thank you @Mayank Dharmpurikar

I miss out on the attributes part, so it took me some time to get it


Thanks!

UserImage.jpg
Namara Mulla

Hi @Jun Mun Chan 

I recreated your scenario, I was able to get the input widget ID. 


Thanks.


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