Completed
Last Updated: 26 Jan 2024 14:19 by ADMIN
Bob
Created on: 17 Mar 2022 08:28
Category: Editor
Type: Bug Report
1
Resize handlers are visible after an image is deleted in Editor

Bug report

The resize handlers in Editor are visible after an image has been deleted

Reproduction of the problem

  1. Open the Demo - https://demos.telerik.com/kendo-ui/editor/index
  2. Select the image and delete it using 'Delete' button
  3. Press Ctrl+Z and then delete the image again

Current behavior

The image disappears, but the resize handlers remain visible

Expected/desired behavior

The resize handlers should be hidden when an image is deleted.

Workaround

<script>
var editor = $('#editor').kendoEditor().data('kendoEditor');

$(editor.body).keydown(function(e){
     if(e.key === "Delete"){    
          $(editor.body).find('.k-element-resize-handle-wrapper').hide()
     }
})
</script>

Dojo

Environment

  • Kendo UI version: 2022.1.301
  • Browser: [all ]
0 comments