using RichTextBox with javascript in web application

2 posts, 0 answers
  1. Sam
    Sam avatar
    1 posts
    Member since:
    Oct 2013

    Posted 02 Oct 2013 Link to this post

    Hi Telerik support,

    I'm new to Telerik controls and would like to use RichTextBox silverlight control in a web application for RTF viewing and editing.

    I want to control functions like document search, bolding change text color etc through javascript.

    I also want to control which buttons are displayed in the RTF viewer's toolbar.

    Is this possible to do?

    Thanks!
  2. Boby
    Admin
    Boby avatar
    595 posts

    Posted 07 Oct 2013 Link to this post

    Hi Sam,
    RadRichTextBox doesn't expose its API to JavaScript callers, but it should be relatively easy to create control which wraps or inherits RadRichTextBox and marks some of the members as scriptable. More information can be found in "Making Silverlight Scriptable by JavaScript" and "Walkthrough: Calling Managed Code from JavaScript" topics in MSDN.

    Default RibbonUI of the RadRichTextBox (as viewed in the demo and the Telerik Editor SDK example at GitHub) is created with XAML, which can be edited to remove the unneeded buttons/controls. You can press the "Code" button in the examples browser and observe the TelerikEditorExample.xaml file to see the default XAML code.

    Regards,
    Boby
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top