将工具栏格式化为TextArea控件 [英] Formatting toolbar to a TextArea control in

查看:74
本文介绍了将工具栏格式化为TextArea控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在表单上有一个TextArea控件用于web应用程序。我想为它添加一个格式工具栏,如粗体,斜体等。控件应该在TextArea控件中选择的文本上工作。



例如我们在 codeproject中提问时得到的工具栏 [ ^ ]或在写邮件时Gmail中。



请帮帮我,我想知道如何添加这个工具栏。任何人都可以解释我怎么做?

I have a TextArea control on my on the form for a webapplication. I want to add a formatting toolbar to it such as bold,italics etc. The control should work on the text selected in the TextArea control.

e.g the toolbar which we get while asking a question in codeproject[^] OR while writing a mail in gmail.

Please help me i want to know how to add this toolbar. Can anyone explain me How to do this?

推荐答案

*转到 http:// ajaxcontroltoolkit.codeplex.com/ [ ^ ]并下载ajaxcontrol工具包使用下载链接



*提取下载的文件,其中包含另一个名为AjaxControlToolkitSampleSite的zip文件。也可以解压缩。



*转到AjaxControlToolkitSampleSite文件夹并查找HTMLEditor文件夹,您可以使用此控件获取大量示例。看看他们



*在你的网站上添加对AjaxControlToolkit.dll的引用,以使用上面文件夹中的示例。否则,请按照下一个链接中的步骤将工具包添加到工具箱中。



*有关如何将工具箱添加到工具箱的说明,请参阅此页面 - http://www.asp.net/ajaxlibrary/act.ash [ ^ ]



*你应该是全部设定去!
* Go to http://ajaxcontroltoolkit.codeplex.com/[^] and download the ajaxcontrol toolkit using the "Download" link

* Extract the downloaded file and this contains another zip file called "AjaxControlToolkitSampleSite". Extract this too.

* Go to the "AjaxControlToolkitSampleSite" folder and look for "HTMLEditor" folder, there you have a number of samples for using this control. Have a look at them

* Add a reference to AjaxControlToolkit.dll in your website to use the example in the folder above. Else follow the steps in the next link to add the toolkit to your toolbox.

* Refer to this page for instructions on how to add it to the toolbox - http://www.asp.net/ajaxlibrary/act.ash[^]

* You should be all set to go!


这篇关于将工具栏格式化为TextArea控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆