25
Views
2
Comments
Solved
[Rich Text Editor (Kendo) Reactive] How can i get the text or marked up text inside the Kendo Richtexteditor textarea?
Question
rich-text-editor-kendo-reactive
Reactive icon
Forge asset by Ramesh Sirvi
Application Type
Reactive
Service Studio Version
11.55.2 (Build 63874)
Platform Version
11.31.0 (Build 43948)

I tried to get the value but the "Get Value" button always output an empty string.

I put breakpoint and saw that the value is empty also.

How can i get the value in the editor?

ExploreOutSystems.oml
2024-06-24 15-21-58
Ahmed Hani
Solution

I see that you are trying to display the value of the text local variable. However, That's not going to display the current value of the editor because the component doesn't update that value automatically.

I've edited the component and added a client action: GetEditorValue that takes EditorWidgetId and outputs the value of the editor.

EditorWidgetId can be retrieved from the Initialized event that I added to the component.

The client action retrieves the value using this js code:

$('#' + $parameters.EditorWidgetId).data('kendoEditor').value();


Check out the attached files for the modified rich text editor oml and the updated ExploreOutSystems oml.

RichTextEditor_Kendo-GetEditorValue.oml
ExploreOutSystems-GetEditorValue.oml
2019-07-02 03-01-30
CapLi

Thank you Mr Ahmed Hani, it is working already. I hope your solution will help others also :)

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