0 Replies Latest reply on Feb 24, 2009 12:14 PM by ZJ DA

    Reset tinyMCE content without re-render the editor

    ZJ DA Newbie

      Hi. When a tree node is selected, the rich:editor will display its content. However, using reRender attribute will make the tinyMCE refresh every time a tree node is clicked, which is not efficient and looks ugly. In an EXT JS-struts project, I can update the editor content:

      Ext.Ajax.request({
       url: "<%=contextPath%>/item.action",
       params: {dispatch:'getContent', sectionId:newSelectedNode.id, splId:root.id},
       success: function(r)
       {
       document.itemForm.content.value = r.responseText;
       }
      });
      


      Could someone give me some sample code to do it with Richfaces by using JavaScript to update tinyMCE content from backbean without refreshing the editor?

      Thanks,
      -ZJ