Re: CuteEditor to RichTextEditor: How do I define a Snippet dropdownlist in the Control

  •  10-30-2012, 4:26 PM

    Re: CuteEditor to RichTextEditor: How do I define a Snippet dropdownlist in the Control

    Hi HuaShyr,

      

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

    Regards,

     

    Ken 

View Complete Thread