Re: staticlinks.xml

  •  09-19-2012, 8:27 PM

    Re: staticlinks.xml

    Hi,

     

    You can specify url like  mymakexml.ashx , and generate dynamic xml at server side.

     

    If you want to  generate dynamc data in client side , you can try this :

     

    Please try this code

    1. function RichTextEditor_OnLoad(editor)  
    2. {  
    3.     editor.LoadLinks(function(group)  
    4.     {  
    5.         group.groups.push({  
    6.             text:"mygroup",groups:[],links:[  
    7.                 {text:"microsoft",href:"http://www.microsoft.com/"}  
    8.             ]  
    9.         });  
    10.         group.links.push({  
    11.             text:"google",href:"http://www.google.com/"  
    12.         });  
    13.     });  
    14. }  
     

    Also , you can send some dynamic data from server to javascript at first , and then add it via javascript.

     

     

    Regards,
    Terry

View Complete Thread