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

Backspace and Enter when Editor is disabled

2 Answers 109 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 28 May 2014, 03:02 PM
Hi,

We're using an Editor and due to a flag it occasionally needs to be disabled.  Disabling works fine using $($('#Content').data().kendoEditor.body).attr('contenteditable', false); but there is still one issue.

Even after its disabled, highlighting text and hitting either backspace or enter removes the text.  I've tried catching keydown, keyup and keypress and preventing default, but that doesn't prevent the behaviour.

Any help would be appreciated!

Thanks,
Kevin

2 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 28 May 2014, 03:26 PM
Hello Kevin,

Disabling of the editor is not supported at this time. Perhaps you can hide it from the user and show only the content instead of hacking out a disabled editor?

Regards,
Alex Gyoshev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Kevin
Top achievements
Rank 1
answered on 28 May 2014, 03:50 PM
Hi Alex,

I was mostly hoping to keep the UI experience consistent, I'll take another approach.  Just using the content is a good suggestion, I can always wrap it in similar styling.

Thanks,
Kevin
Tags
Editor
Asked by
Kevin
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or