This is a migrated thread and some comments may be shown as answers.

using RichTextBox with javascript in web application

1 Answer 91 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 03 Oct 2013, 02:48 AM
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!

1 Answer, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 07 Oct 2013, 07:15 AM
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 >>
Tags
RichTextBox
Asked by
Sam
Top achievements
Rank 1
Answers by
Boby
Telerik team
Share this question
or