RefreshUI and ApplyChanges to RadEditor in SF 6
i'm updating a textbox to a radeditor in a sf6 project.
I'm not sure if I'm getting the radeditor properly or if I'm not setting the value properly. RefreshUI does this.
jQuery(this.get_bodyText()).val("testBodyText");
found a few other methods but either it's not supported, or it updates the entire editor with text.
Well that's awkward. Pardon the double post. The site showed 500 error so I just tried reposting.
Hi Richard,
Can you try using set_html instead? For instance:
refreshUI: function () var controlData = this._propertyEditor.get_control(); if (controlData.TextExample) this.get_textexample().set_html(controlData.TextExample); ,@Richard
You need to use the MSAjax api for the old RadEditor
http://www.telerik.com/help/aspnet-ajax/editor-getting-familiar-with-client-side-api.html
So use jQuery to find the ID of that widget like
var id = $("[id$='MyEditor']").attr("id"); //Gets the long-asp generated nameThen get the reference to the MSAjax object
var editor = $find(id);Now feel free to use any of the client API calls. This goes for all RadControls, not just the RadEditor.