Overwrite Preview Mode

2 posts, 1 answers
  1. Stephan
    Stephan avatar
    1 posts
    Member since:
    Oct 2012

    Posted 12 Oct 2015 Link to this post

    Hi,

     I'm trying to use the Editor to give my users the ability to write a custom message template for an application, that will send notification upon certain events.

     

    To give the users the ability to customize the notification-message, I'd like to have replaceable codes in the editor. Something like {User}, that will be replaced in the actual message with the current users name. The Editors Content is saved with these Codes and my application replaces the tags, when the message is sent.

     

    Is it possible to change the Preview-Mode of the Editor, so I can replace this codes with data, so the user sees how the message will look like?

     

    To summarize: Is it possible to change the content shown in the preview mode?

     

    Thanks for your help.

  2. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 13 Oct 2015 Link to this post

    Hi Stephan,

    You can change the content inside RadEditor by using the modeChange event—http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/client-side-programming/events/onclientmodechange

    You can also see the get_html() and set_html() methods:

    Regards,

    Ianko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top