6 Answers, 1 is accepted
Hi Corey,
There is an example that shows how to disable the editor with javascript which you can find here. You can use it as a basis for your code.
Kind regards,
the telerik team
Hi Corey,
Can you please share with us the approach you are using to disable the editor and what problems you are encountering? This will enable us provide more meaningful help.
Sincerely yours,
Digibo
the telerik team
Well i tried implementing that javascript code from the example in the code library. Now, the code didnt crash, and it would be called and all that, but it just... didn't do anything.
So I tried just creating my own disable script which goes through (recursively) and disables all the inputs and selects etc within any node i specify. This worked on all the html fields I had, but when it got to the rad editor, it would disable HTML view just fine, but the WYSIWYG mode just kept on chugging.
So I copped out and made a hidden label that contains all the same content as would be in the iFrame of the editor. Then using that same disable/ enable function i check each Node it runs through for a specific class I gave to it and will show/hide the editor (which is inside a panel) or label.
So yeah, not the most graceful solution, but it worked!
Well i tried implementing that javascript code from the example in the code library. Now, the code didnt crash, and it would be called and all that, but it just... didn't do anything.
So I tried just creating my own disable script which goes through (recursively) and disables all the inputs and selects etc within any node i specify. This worked on all the html fields I had, but when it got to the rad editor, it would disable HTML view just fine, but the WYSIWYG mode just kept on chugging.
So I copped out and made a hidden label that contains all the same content as would be in the iFrame of the editor. Then using that same disable/ enable function i check each Node it runs through for a specific class I gave to it and will show/hide the editor (which is inside a panel) or label.
So yeah, not the most graceful solution, but it worked!
Hello Corey,
I'm glad you've found a way that works for you. If there is anything we can help with or you have other questions, feel free to ask.
Greetings,
Digibo
the telerik team