RefreshUI and ApplyChanges to RadEditor in SF 6

Posted by Community Admin on 04-Aug-2018 16:11

RefreshUI and ApplyChanges to RadEditor in SF 6

All Replies

Posted by Community Admin on 06-Dec-2014 00:00

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. 



Posted by Community Admin on 06-Dec-2014 00:00

Well that's awkward. Pardon the double post. The site showed 500 error so I just tried reposting. 

Posted by Community Admin on 06-Apr-2015 00:00

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);
    
,


Best,
Junior Dominguez
Telerik
 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 06-Apr-2015 00:00

@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 name

 Then 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.

 

This thread is closed