Unplanned
Last Updated: 28 Mar 2023 13:55 by Barbara
Created by: Barbara
Comments: 0
Category: Editor
Type: Bug Report
1

Bug report

Using Edge/Chrome, upon pasting underline text in the Kendo UI Editor, the content is rendered underline, but the UI doesn't highlight the button. In turn, if the user toggles the underline style for parts of the text, it doesn't work. At this point, the button is now highlighted for the part, but switching back to no underline style doesn't have any effect regarding the rendering. Removing the style for the whole line does work as expected.

Reproduction of the problem

  1. Open Editor demo and enter some text, containing an underline.

UnderlineTextStep1

  1. Copy the entered text and reload page
  2. Paste content at the start of the document. The text is not recognized as underline text

UnderlineTextStep3

  1. Select part of the text and toggle underline. Part of the text is recognized as underlined text now.

UnderlineTextStep4A
UnderlineTextStep4B

Expected/desired behavior

The underlined text decoration should be recognized by the UI and display.

Additional Notes

As a comparison, here is the content after paste:

Edge/Chrome

<p><span style="text-decoration-line:underline;">some text with underline</span></p>

FireFox - which is working

<p><span style="text-decoration:underline;">some text with underline</span></p>

Environment

  • Kendo UI version: 2023.1.314
  • jQuery version: All supported versions
  • Browser: Chrome 111.0.5563.111 | Edge 111.0.1661.54
Unplanned
Last Updated: 02 Mar 2023 13:46 by Paweł Korczak

Bug report

Editor inserts two <br /> with enter press when insertLineBreak is changed to br

Reproduction of the problem

Open Dojo: https://dojo.telerik.com/EtUZIVUX

Place the cursor at the end of a line and press ENTER

Expected/desired behavior
Only one <br /> shall be added

Environment
Kendo UI version: [all]
Browser: [all]

Completed
Last Updated: 04 Jun 2024 06:19 by ADMIN
Release 2024 Q1
Created by: Bob
Comments: 1
Category: Editor
Type: Bug Report
0

We are seeing an issue with duplicate images being inserted in the editor on the key combinations below.

This issue can be recreated on the Kendo editor demo website.

  1. Add an image to the editor.
  2. Place cursor in front of image and press Enter.
  3. Press arrow-up key to move cursor to empty line above image.
  4. Press delete key to remove empty line.
  5. Press Enter key to create a duplicate image.
Completed
Last Updated: 24 Mar 2023 09:25 by ADMIN

The Kendo UI Editor widget comes with a tool formatting tool that can be activated using the tools option. It renders a dropDown with different entries representing the supported formatting styles. As you can see in this DOJO, the entries are overly large. This comes from a syntax error in the inline style applied to the span inside the .k-list-item-text DOM element (display: inline-block#; instead of display: inline-block;) This causes the browser to ignore this line and leads to broken styling. Fixing the syntax error in the browser console fixes the styling issue.

Unplanned
Last Updated: 30 Jan 2023 09:59 by Remigijus

Bug report

When the content is scrolled and the user tries to click in the Editor, the cursor is not always set on the correct position

Reproduction of the problem

  1. Open the Dojo
  2. Scroll and try to click on different places in the Editor content.

Current behavior

Sometimes the cursor is not set in the expected position. screencast - https://somup.com/c0VvQMxw1m

Expected/desired behavior

The cursor should be set on the correct place when clicking

The issue is a regression and can be replicated starting with the 2022 R1 SP1 (2022.1.301)

Environment

  • Kendo UI version: 2023.1.117
  • Browser: [all ]
Unplanned
Last Updated: 06 Jan 2023 10:51 by Matthew

Bug report

Content pasted from Outlook/Word might lead to throwing a 'Cannot read properties of null (reading 'nodeType')' error when pasted in Editor.

Reproduction of the problem

  1. Open the Dojo examples:
  1. Copy and paste the content above the Editor in the Editor

Current behavior

An error: Cannot read properties of null (reading 'nodeType') is thrown in the console

Expected/desired behavior

No error should be thrown when pasting content into the Editor

Note: The purpose of the issue is to avoid errors in the console not styling the content as list.

Workaround:

`paste: function(e){
e.html = e.html.replace(/MsoNormal/g, "");
e.html = e.html.replace(/mso/g, "");
}

Environment

  • Kendo UI version: 2022.3.1109
  • Browser: [all ]
Completed
Last Updated: 23 Dec 2022 14:14 by ADMIN
Release R1.2023-Increment.3(18.Jan.2023)

Bug report

If the Editor ColorPickers are defined as gradient instead of palette, it does not render buttons and input.

Regression introduced with 2021.1.224

Reproduction of the problem

  1. Open this Dojo example - https://dojo.telerik.com/@martin.tabakov@progress.com/eSuFUVIK/5
  2. Open one of the ColorPickers

Current behavior

No input and buttons are rendered.

Expected/desired behavior

There should be input and buttons.

Environment

  • Kendo UI version: 2022.3.1109
  • Browser: [all]
Unplanned
Last Updated: 06 Dec 2022 15:49 by ADMIN

Hello,

when I paste text from notepad editor, it is pasted with default font-size even if I currently have cursor on text with bigger font size. Can the editor apply current formatting on pasted text? it is replicable in editor demo. https://demos.telerik.com/kendo-ui/editor/index

thanks,

Marel

Completed
Last Updated: 21 Dec 2023 09:01 by ADMIN
Release R1.2024-Increment.2(31.Jan.2024)

Bug report

Immutable content is incorrectly removed when you delete line in the Editor textarea.

Reproduction of the problem

  1. Open this demo - https://demos.telerik.com/kendo-ui/editor/immutable-elements
  2. Place your mouse cursor after Dear Your Name,
  3. Hit Enter
  4. Hit Backspace

Current behavior

The immutable "Dear" part of the text is removed instead of the empty line

Expected/desired behavior

The immutable content should not be removed

Environment

  • Kendo UI version: 2022.3.913
  • Browser: [all]
Unplanned
Last Updated: 15 Sep 2022 11:32 by Richard

Bug report

If you select a text in the Editor, the ForeColor value is not updated to match the color of the selected text.

Reproduction of the problem

  1. Open this Dojo example - https://dojo.telerik.com/IHAGOfom/6
  2. Select the first line
  3. Select a color from the tool
  4. Select the second line

Current behavior

The value of the ForeColor tool is not updated to match the second line

Expected/desired behavior

The ForeColor value should change based on the selected text

Environment

  • Kendo UI version: 2022.3.913
  • Browser: [all]
Unplanned
Last Updated: 05 Sep 2022 11:39 by ADMIN
Created by: Lars
Comments: 2
Category: Editor
Type: Bug Report
2

Hi,

please review the following steps:

1) Go to: https://dojo.telerik.com/@lhoeppner/IYoKegOY

2) In the editor, click the "View Html" button

3) Select all, then paste this new content, then select "Update":

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title></title>
<style type="text/css">.csAD7A2888{text-align:left;text-indent:0pt;margin:12pt 0pt 12pt 0pt}
.cs2D694F89{color:#000000;background-color:transparent;font-family:Tahoma;font-size:10pt;font-weight:normal;font-style:normal;}
.csC8F6D76{color:#000000;background-color:transparent;font-family:Calibri;font-size:11pt;font-weight:normal;font-style:normal;}
</style>


<p class="csAD7A2888"><span class="cs2D694F89">1st line</span></p>
<p class="csAD7A2888"><span class="cs2D694F89">2nd line</span></p>
<p class="csAD7A2888"><span class="cs2D694F89">3rd line </span></p>
<p class="csAD7A2888"><span class="cs2D694F89">4th line</span></p>
<p class="csAD7A2888"><span class="cs2D694F89">...</span></p>
<p class="csAD7A2888"><span class="csC8F6D76">Tim Allens 24-08-2022 18:02 (UTC+00:00) Dublin, Edinburgh, Lisbon, L</span></p>

4) Click to put the cursor in front of "2nd line", then click to put the cursor in front of "1st line" (at the beginning of the note)

5) Press backspace

Result: The line starting with "1st line..." is deleted.

6) Put cursor in front of "3rd line", then back in front of "2nd line", press backspace

Result: The line starting with "2nd line..." is deleted.

 

Backspace shouldn't delete anything in that scenario because the cursor is in front of all note content, and nothing is selected.

The deletion occurs via kendo.editor._handleBackspace/_merge 

 

Thanks,

Lars

Unplanned
Last Updated: 29 Jul 2022 07:23 by Anthony

Bug report

Color style is not preserved for the font tag in the Editor

Reproduction of the problem

  1. Open this Dojo example - https://dojo.telerik.com/ucUxOLej/10
  2. Change the color of the text
  3. Press the Test button to console log the Editor value

Current behavior

The color style is not preserved

Expected/desired behavior

The color style should be preserved.

Environment

  • Kendo UI version: 2022.2.621
  • Browser: [all]
Unplanned
Last Updated: 12 Jul 2022 09:30 by Lauren

Bug report

If you remove an image in the Editor and then return it with undo action, the image resize handlers will be duplicated.

Reproduction of the problem

  1. Open this Dojo example - https://dojo.telerik.com/onIsuKuP/4
  2. Select and remove the image using Del key.
  3. Undo with Ctrl + Z
  4. Select the image and resize it.

Current behavior

The resize handlers are duplicated.

Expected/desired behavior

The resize handlers shouldn't be duplicated.

Environment

  • Kendo UI version: 2022.2.621
  • Browser: [all]
Unplanned
Last Updated: 04 Jul 2022 13:38 by Jaspreet

Bug report

When an image from docx file is pasted in the Editor an error is thrown.

Reproduction of the problem

  1. Open the Dojo
  2. Open the file test_word_images.docx
  3. Copy the first image and paste it in the Editor

Current behavior

An error is thrown : "Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'"
screencast

Expected/desired behavior

There should be no errors in the console.

Environment

  • Kendo UI version: 2022.2.621
  • Browser: [all ]
Unplanned
Last Updated: 17 Jun 2022 08:46 by Anthony

Describe the regression
If you bold some text in the Inline Editor, the content will be displayed on separate lines

To reproduce

  1. Open this example - https://dojo.telerik.com/aZAFUzuq/12
  2. Type some text, e.g "Some editor text"
  3. Bold the "editor" part
    Expected behavior
    The text should remain on a single line.

Affected package (please remove the unneeded items)

  • theme-default
  • theme-bootstrap
  • theme-material
  • theme-tasks

**Affected suites

  • Kendo UI for jQuery

Affected browsers

  • All

Additional context
Introduced with 2020.2.617

Unplanned
Last Updated: 11 May 2022 16:45 by FA
Created by: FA
Comments: 0
Category: Editor
Type: Bug Report
0

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 ]
Completed
Last Updated: 30 Aug 2022 09:06 by ADMIN
Release 2022.R3

Bug report

When the Editor is opened on iPad in desktop mode it seems like it has not been initialized. It is displayed as a standard textarea.

Reproduction of the problem

  1. Open the Demos on ipad in desktop mode. - https://demos.telerik.com/kendo-ui/editor/index

Current behavior

The Editor is displayed as a standard textarea. There is no toolbar rendered.
image

Expected/desired behavior

The Editor should be rendered as on the other devices/browsers.

Environment

  • Kendo UI version: 2022.1.412
  • Browser: [all ]
Completed
Last Updated: 26 Jan 2024 14:19 by ADMIN

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 ]
Completed
Last Updated: 05 Sep 2022 06:30 by ADMIN
Release 2022.R3
Created by: Asela
Comments: 3
Category: Editor
Type: Bug Report
6

Hello,

When using the Editor, and pasting a table from Word, some of the styles are lost.

Here is a screenshot of the results when pasting the table from the attached document in this dojo: https://dojo.telerik.com/IraPuMAm.

Regards

Need More Info
Last Updated: 15 Dec 2021 11:40 by ADMIN
Created by: Mark
Comments: 1
Category: Editor
Type: Bug Report
0

Hi Team,

We recently ran security scan on our web application which using "https://kendo.cdn.telerik.com/2020.2.513" Version.

and we encountered one scenario where Cross Site script executed even though we implemented encode and decode.

Scenari: User opens editor -> Clicks Insert Link Option.

We filled URL, Text inputs and for Tooltip fields we input Cross Site Script i.e (">">">"><script>alert(document.cookie);</script>)

and we clicked INSERT.

Basically the Tooltip field will break the anchor tag title parameter and script will execute.

Though we have implemented HTML encode and Decode we still experiencing this alert popup with cookie data while encode and Save and also Decode and Show.

 

OR
Please let us know.

How to restrict user to input only Alphanumeric Values into the fields "Text", and "ToolTip" when user clicks "Insert Link" option on Kendo tool Editor (CK Editor).