Backspace and Enter when Editor is disabled

3 posts, 1 answers
  1. Kevin
    Kevin avatar
    22 posts
    Member since:
    Feb 2014

    Posted 28 May 2014 Link to this post

    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. Answer
    Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 28 May 2014 Link to this post

    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.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Kevin
    Kevin avatar
    22 posts
    Member since:
    Feb 2014

    Posted 28 May 2014 in reply to Alex Gyoshev Link to this post

    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
Back to Top