4 Answers, 1 is accepted
I guess this post gives some kind of answer to your question.
I found it these days because I was also searching for an "extended text editor".
I want (like you) text file edit - and (like the other poster) CSS file edit.
Reading the linked post I decided not to use RadEditor in this case.
So I do two different things
a.) for Textfiles (small ones) I use a normal textbox
Spell is useable - and "formatting" on a textfile :)
b.) for CSS and other specialized filetypes I implemented a download / upload scenario with RadFileExplorer
This is OK for my customer - he uses Visual Studio Express Web for CSS - which gives "WYSIWYG" editing.
Ah, by the way - my HTML content editing is done with RadEditor.
The editor is meant and designed to be used as a HTML editor, and not as textbox (the assumption being that if one needs a textbox one would use a textbox).
Still, the editor does offer some text- and textbox- related features, such as the read-only Text property which returns editor content as pure text, for example.
As far as setting [text] content is concerned, the link provided by Manfred is quite good and will help you in your scenario.
In case you are looking also for more textbox-like RadEditor look II want to point your attention to the following online demo:
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
I was able to get it to work as an extended simple text editor with a little work put in.
1. I used a custom .xml file for the Toolbar to eliminate any richtext features. I just gave the user the very basics of text manipulation but much more than a textbox would give you. I felt this was needed because the users would be editing text that would go out in form emails from my application.
2. I created methods to do conversion just before loading into the editor object (ConvertCrToBr) and an html scrub on the output (ScrubOutHtml).
I am sure even more improvements could be made or something I am not anticipating but it seems to be working well for me for what I need it for.
Thank you for sharing your solution with the community!
I'd like to add also this demo on the matter Displaying RadEditor as a TextBox. It shows how to customize the appearance of the control so it looks similar to a textarea.
Another option is to force RadEditor to be rendered as a standard textarea by setting its EnableTextareaMode="true" property.