This is a migrated thread and some comments may be shown as answers.

[Solved] RadEditor as TestBox

1 Answer 160 Views
Editor
This is a migrated thread and some comments may be shown as answers.
horsted
Top achievements
Rank 1
horsted asked on 26 Jun 2008, 10:59 AM
Hi telerik,

(Header should ofcause be 'RadEditor as TextBox', not TestBox)

I would like to use RadEditor as a simple editor for .txt, .js, .htm documents without the text beeing html formated. Like a regular multiline TextBox but with buttons (that dont generate html) like Cut, Coyp, Paste, Undo, Redo and Find & Replace. Like when editor is in 'HTML-mode', but with the above mentioned buttons as the only buttons and active/enabled.

Ofcause one shouldn't be able to choose view-modes, as there is no formating or preview.

Is this possible? Thanks in advance!

/horsted 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Jun 2008, 03:56 PM
Hi horsted,

RadEditor is a HTML/XHTML editor. It relies/depends on the underlying browser rich-editing engine, and it does not support editing js files. While you can use some hacks to make the content look prettier (e.g. wrap the js in a <PRE> tag, and others), we do not recommend trying to use RadEditor as an JS editor.

Of course, you can load and edit HTML and TXT files in it as well as hide the desired buttons.


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
horsted
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or