This is a migrated thread and some comments may be shown as answers.

How to implement serialization of fields of the Form containing RadEditor

1 Answer 54 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Eugeny
Top achievements
Rank 1
Eugeny asked on 16 Jul 2010, 09:42 AM
How to implement serialization of fields of the Form, that contains RadEditor (in order to make callback-request)? Microsoft JavaScript function WebForm_InitCallback() does it, scanning form fields and adding their values in a variable __theFormPostData. But in a case with RadEditor, it finds only <textarea> (<textarea ... id="RadEditor1ContentHiddenTextarea" style="display: none;">), that contains the initial data (loaded with page). How (before i make callback-request) it is possible to update value in <textarea> on the data from <iframe>? And what is purpose of <textarea> element?

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 20 Jul 2010, 11:16 AM
Hi Ivan,

You should also fire the editor.saveContent(); method before submitting the content, e.g

editor.saveContent();

This will ensure that the editor content is saved (the textarea content is updated with the content of the RadEditor) before the submission.

All the best,
Dobromir
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Eugeny
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or