Unplanned
Last Updated: 21 Jul 2021 10:42 by ADMIN
loring
Created on: 21 Jul 2021 10:39
Category: Editor
Type: Bug Report
0
Disable image and table resizing when contenteditable is false

Using contenteditbale=false to disable the Editor image and table resizing still works. 

Dojo to reproduce the problem:

https://dojo.telerik.com/acIhiqiN

Actual behavior:

Steps: 

1. Disable using the button

2. Try to resize the image - it can be resized

3. Try to resize the table- it can be resized

Expected:

Images and tables not to be resized

1 comment
ADMIN
Ianko
Posted on: 21 Jul 2021 10:42

Hi Loring,

Thank you for this bug report.

Here you are a workaround for the time being: https://dojo.telerik.com/@iankodj/akaxeceK

    var _initResizeHandles = kendo.ui.editor.ElementResizing.fn._initResizeHandles;

    var resizingInProgress = kendo.ui.editor.TableElementResizing.fn.resizingInProgress;
    
    kendo.ui.editor.ElementResizing.fn._initResizeHandles = function(){
      var body = this.options.rootElement;
      if(body.contentEditable === "false") return;
      _initResizeHandles.call(this);
    };

    kendo.ui.editor.TableElementResizing.fn.resizingInProgress = function () {
      var body = this.options.rootElement;
      if(body.contentEditable === "false") return true;
      resizingInProgress.call(this);
    }

Regards,
Ianko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.