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

Making the Editor Disabled/Readonly

5 Answers 282 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marc
Top achievements
Rank 1
Marc asked on 30 Nov 2010, 05:33 PM

Hi,

I am trying to make an Editor Readonly/Disabled so that the user should be unable to type any text in the editor. Unfortunately my code is not working. Does anybody knows why? Thanks.
Here is a sample code:

 

@(Html.Telerik().Editor()
                .Name(

 

"editor")

 

                .HtmlAttributes
                    (

 

new { style = "height:100px", disabled = "disabled", @readonly="readonly" })

 

                .Value(

 

""));

Thanks

Marc

 

5 Answers, 1 is accepted

Sort by
0
nachid
Top achievements
Rank 1
answered on 30 Nov 2010, 07:53 PM
Search the forum as this question was already asked and answered by someone from the team
If I do remember well it is not possible to have a read only editor

Anyway, think about it
What's the benefit having a read-only disabled Editor?
0
Marc
Top achievements
Rank 1
answered on 01 Dec 2010, 09:20 AM
Hi

the purpose of having a rich text box disbaled/readonly is to be able to view the rich text that is coming from the DB and which was previously edited with a rich text box..
0
Jonisan
Top achievements
Rank 1
answered on 28 Feb 2012, 12:10 PM
Hi ,, I need to know if this has a solution now , Ca I make it read-only or disable ?
0
Nadisan
Top achievements
Rank 2
answered on 05 Apr 2012, 09:24 AM
I am also interested if we can make the editor readonly or disabled.
0
ScopiaRx_CTO
Top achievements
Rank 1
answered on 15 Sep 2012, 02:58 AM
Just use an IFRAME instead.
Tags
Editor
Asked by
Marc
Top achievements
Rank 1
Answers by
nachid
Top achievements
Rank 1
Marc
Top achievements
Rank 1
Jonisan
Top achievements
Rank 1
Nadisan
Top achievements
Rank 2
ScopiaRx_CTO
Top achievements
Rank 1
Share this question
or