Unplanned
Last Updated: 11 May 2022 16:45 by FA
FA
Created on: 11 May 2022 16:45
Category: Editor
Type: Bug Report
0
Read-Only Editor clear pasted text

Bug report

When text is hihlighet in Rwad-Only Editor and the user tries to paste a text, the highlighted text dissapears.

Reproduction of the problem

  1. Open the Dojo
  2. Copy some text
  3. Highlight part of the text in the Editor and try to paste using Ctrl + V

Current behavior

Currently, the highlighted text dissapers

Expected/desired behavior

The highlighted text should not dissapear and the content of the Editor should remain unchanged.

Workaround

kendo.ui.editor.Clipboard.fn.onpaste = function(){
        if (this.editor.body.contentEditable === "false" || this.editor.body.contentEditable === "inherit" ) {
          return;
        }
      }

Dojo

Environment

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