I just finished creating a RichTextbox control for my website.
So I thought it will be a great idea to put it on CodeProject so that it can be used for other developers who want such control and also I can get some good feedback to create better controls and improving the current one.
This is a simple control that lets you put in text and you can make the entered text Bold, Underline , Italics, Align the text, put a horizontal rule, give it desired font and size.
Also I have made the code such that you can get the text easily from the control using the getText() and getHTML() methods. The getText() method will give the inner text of the textbox and the getHTML() method will give the text with the HTML code embedded in the resulting text.
Checkout the code of the control where I have given a working example of using it.
Also the control is such designed that it will work perfectly on a Datagrid. Where in you can use it as a template item.
Any comments and/or suggestion are very much appreciated.
Using the code
Using the code is pretty simple and easy. Any web developer who has littele knowledge of working with user controls will be able to use it.
Although i have given a fully functional working example with it. You can view the example and learn how to use the control.
working example in a stand alone page.
working example in a grid.
In case anyone wants to add some more functionalities to the code he / she is more than welcome to do so. Please give some feedback and observations as this is my first project that i have uplaoded. if you find certain ways that i can improve on, please let me know so.