Search:
Namespaces
Discussions
.NET v1.1
Feedback
custom button on rtb control
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngrichtextbox' list
.
Eric Greenberg
I would like to add a custom button to the toolbar of the richtextbox
control. This button will essentially act as a hyperlink creator: the user
will highlight a word, then click the custom button. A new instance of the
rtb pops-up. User inputs content, clicks save, pop-up window closes. Now the
word which is highlighted gets saved as a hyperlink linking to the content
that was just created. The main point of my question is "does anyone have
any information on adding a custom button to the rtb toolbar". I will figure
it out from there, and I couldn't find any info regarding this on the rtb
website (except a one sentence reference). Any help would be appreciated.
Eric Greenberg
Developer
BankersEdge
Click here to reveal e-mail address
610.983.3760
Reply to this message...
Ollie Cornes
Hi Eric,
This isn't documented because it isn't currently possible. It's been
requested by a fair few people so a future version will probably include it.
As a workaround, you can add a button next to the
RichTextBox
and write
client-side script to insert text into the document. If you are familiar
with the DOM, you should find what you need at MSDN.
RichTextBox
is
(currently) using an editable iframe, so take a look at the methods and
properties on that, but please be aware I cannot guarantee that any code you
write that hooks up with the control in that way will work with future
versions.
Does that answer your question?
Ollie
--
http://www.richtextbox.com/
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]On Behalf Of Eric
Greenberg
Sent: 30 May 2002 20:31
To: aspngrichtextbox
Subject: [aspngrichtextbox] custom button on rtb control
I would like to add a custom button to the toolbar of the richtextbox
control. This button will essentially act as a hyperlink creator: the user
will highlight a word, then click the custom button. A new instance of the
rtb pops-up. User inputs content, clicks save, pop-up window closes. Now the
word which is highlighted gets saved as a hyperlink linking to the content
that was just created. The main point of my question is "does anyone have
any information on adding a custom button to the rtb toolbar". I will figure
it out from there, and I couldn't find any info regarding this on the rtb
website (except a one sentence reference). Any help would be appreciated.
Eric Greenberg
Developer
BankersEdge
Click here to reveal e-mail address
610.983.3760
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
Reply to this message...
Danilo A. Diaz Jr
Is it possible to use the control to create another control (Inhering the
control) to manipulated the output.
-----Original Message-----
From: Ollie Cornes [mailto:
Click here to reveal e-mail address
]
Sent: Thursday, May 30, 2002 3:36 PM
To: aspngrichtextbox
Subject: [aspngrichtextbox] RE: custom button on rtb control
Hi Eric,
This isn't documented because it isn't currently possible. It's been
requested by a fair few people so a future version will probably include it.
As a workaround, you can add a button next to the
RichTextBox
and write
client-side script to insert text into the document. If you are familiar
with the DOM, you should find what you need at MSDN.
RichTextBox
is
(currently) using an editable iframe, so take a look at the methods and
properties on that, but please be aware I cannot guarantee that any code you
write that hooks up with the control in that way will work with future
versions.
Does that answer your question?
Ollie
--
http://www.richtextbox.com/
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]On Behalf Of Eric
Greenberg
Sent: 30 May 2002 20:31
To: aspngrichtextbox
Subject: [aspngrichtextbox] custom button on rtb control
I would like to add a custom button to the toolbar of the richtextbox
control. This button will essentially act as a hyperlink creator: the user
will highlight a word, then click the custom button. A new instance of the
rtb pops-up. User inputs content, clicks save, pop-up window closes. Now the
word which is highlighted gets saved as a hyperlink linking to the content
that was just created. The main point of my question is "does anyone have
any information on adding a custom button to the rtb toolbar". I will figure
it out from there, and I couldn't find any info regarding this on the rtb
website (except a one sentence reference). Any help would be appreciated.
Eric Greenberg
Developer
BankersEdge
Click here to reveal e-mail address
610.983.3760
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
Reply to this message...
Ollie Cornes
Hi Danilo,
Yes, you can inherit from the
RichTextBox
class. It works really well for
the scenario you describe. It also work well for crearing localized
versions, e.g. a FrenchRichTextBox that is already configured with French
text resources.
Ollie
--
http://www.richtextbox.com/
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]On Behalf Of
Danilo A. Diaz Jr
Sent: 11 June 2002 20:38
To: aspngrichtextbox
Subject: [aspngrichtextbox] RE: custom button on rtb control
Is it possible to use the control to create another control (Inhering the
control) to manipulated the output.
-----Original Message-----
From: Ollie Cornes [mailto:
Click here to reveal e-mail address
]
Sent: Thursday, May 30, 2002 3:36 PM
To: aspngrichtextbox
Subject: [aspngrichtextbox] RE: custom button on rtb control
Hi Eric,
This isn't documented because it isn't currently possible. It's been
requested by a fair few people so a future version will probably include it.
As a workaround, you can add a button next to the
RichTextBox
and write
client-side script to insert text into the document. If you are familiar
with the DOM, you should find what you need at MSDN.
RichTextBox
is
(currently) using an editable iframe, so take a look at the methods and
properties on that, but please be aware I cannot guarantee that any code you
write that hooks up with the control in that way will work with future
versions.
Does that answer your question?
Ollie
--
http://www.richtextbox.com/
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]On Behalf Of Eric
Greenberg
Sent: 30 May 2002 20:31
To: aspngrichtextbox
Subject: [aspngrichtextbox] custom button on rtb control
I would like to add a custom button to the toolbar of the richtextbox
control. This button will essentially act as a hyperlink creator: the user
will highlight a word, then click the custom button. A new instance of the
rtb pops-up. User inputs content, clicks save, pop-up window closes. Now the
word which is highlighted gets saved as a hyperlink linking to the content
that was just created. The main point of my question is "does anyone have
any information on adding a custom button to the rtb toolbar". I will figure
it out from there, and I couldn't find any info regarding this on the rtb
website (except a one sentence reference). Any help would be appreciated.
Eric Greenberg
Developer
BankersEdge
Click here to reveal e-mail address
610.983.3760
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
Reply to this message...
System.Windows.Forms.RichTextBox
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com