hi all,
does anyone know how i can add a custom button to my toolbar that either has a textbox beside it - or pops up a text box so i can paste some text into there. I figured out how to add a custom button, but i want to allow the user to
a) click this button
b) paste in a url
c) have the button render the content i want into the editor.
just unsure about the "Best practice" for this type of thing. i realize i can use all JS to create a popup or display a hidden div with an input in it - but i was thinking maybe the editor (or any of the other controls included ) would be better suited to this.
thanks in advance,
mcm
does anyone know how i can add a custom button to my toolbar that either has a textbox beside it - or pops up a text box so i can paste some text into there. I figured out how to add a custom button, but i want to allow the user to
a) click this button
b) paste in a url
c) have the button render the content i want into the editor.
just unsure about the "Best practice" for this type of thing. i realize i can use all JS to create a popup or display a hidden div with an input in it - but i was thinking maybe the editor (or any of the other controls included ) would be better suited to this.
thanks in advance,
mcm
5 Answers, 1 is accepted
0
Hello mike,
This sounds like a design, which could be completed just through a button, an initially hidden text box which is shown on button click, and an editor below. You can also use AJAX to display the text box and update the editor.
I hope this makes sense.
Regards,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
This sounds like a design, which could be completed just through a button, an initially hidden text box which is shown on button click, and an editor below. You can also use AJAX to display the text box and update the editor.
I hope this makes sense.
Regards,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

mike
Top achievements
Rank 1
answered on 02 May 2008, 02:16 PM
yes i understand i can build it myself using javascript some hidden fields and ajax but i wanted to know if this control already had something in it we could use. Is it possible to create anything other than a plain vanilla button in a custom toolbar? How can i make a "textbox" in the toolbar like i have seen in some demos? Or how do i make a custom dropdown list in a toolbar like your custom link selector or the CSS selection tool? Any one of these would work for me and the less custom code needed the better from our point of view.
thanks,
mcm
thanks,
mcm
0
Hello mike,
Can you please share which control do you mean? Do you talk about the RadEditor, RadToolbar, or any other component? Which demos do you refer?
Kind regards,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Can you please share which control do you mean? Do you talk about the RadEditor, RadToolbar, or any other component? Which demos do you refer?
Kind regards,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

mike
Top achievements
Rank 1
answered on 07 May 2008, 01:58 PM
i am talking about the RadEditor.
mcm
mcm
0
Hi Mike,
Please, see the following help article and live example which provide guidance how to create custom editor's dropdowns:
Adding Custom Dropdowns
and
Add Custom Tools.
Greetings,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Please, see the following help article and live example which provide guidance how to create custom editor's dropdowns:
Adding Custom Dropdowns
and
Add Custom Tools.
Greetings,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center