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

Disable in KendoEditor

1 Answer 148 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gonzalo
Top achievements
Rank 1
Gonzalo asked on 20 Nov 2014, 07:50 PM
Hi, I tried to disable the content as mentioned here, using:

<script>
$(function () {
   $($('#editor').data().kendoEditor.body).attr('contenteditable', false);
})
</script>

But it doesn't disable the toolbar buttons, so it's possible to add custom styles to the editor content. Is there any way to disable the toolbar too?

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 24 Nov 2014, 09:16 AM
Hello Gonzalo,

As the linked thread mentions, this functionality is not supported. Instead, hide the editor and show its value in a <div> element.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Editor
Asked by
Gonzalo
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or