In the Editor with non-editable content, if you delete the content of the element and type new value, the new value cannot be obtained.
Regression introduced in Kendo 2020.1.114
The value method returns an empty string.
The value method should return the newly typed content.
I can use the Print-Dialog (Print-Icon in the Editor) only once.
If I try to use it again nothing happens. If I do a page reload everything works fine for one time again.
When a content containing carriage return is pasted from Word in the Editor and space or Enter is clicked at the end of the content JS error is thrown. The issue is reproducible in Chrome and Edge.
Issue 1:
Issue 2
Follow the same steps as above, but on step 6 press Enter instead of space
The following JS errors are thrown:
There should be no JS errors when a content with carriage return is pasted in the Word file and space or enter are pressed at the end of the pasted content.
Regression introduced in R1 2021 SP1. Related to: #6169
Reproducible in the demos in IE11.
A js exception is thrown.
No exceptions on pasting the table.
The toolbar in the Editor's ImageBrowser is not rendered correctly with jQuery 3.5.x
The toolbar is not rendered correctly. Items are differently positioned.
The toolbar should be rendered as in this example. https://dojo.telerik.com/@martin.tabakov@progress.com/OZOMoJeJ
When uploading a file through the Editor's FileBrowser, the file's name is not updated with the name coming generated on the server. The file's name is updated in the ImageBrowser using the same server code.
Editor configuration:
$("#editor").kendoEditor({
fileBrowser: {
schema: {
model: {
id: "name",
fields: {
name: { field: "name" },
type: { field: "type" },
size: { field: "size" }
}
}
},
transport: {
read: "@Url.HttpRouteUrl("ActionApi", new {controller = "MessageTemplates", action = "Read"})",
destroy: "",
create: "",
uploadUrl: "@Url.HttpRouteUrl("ActionApi", new {action = "UploadMp3", controller = "MessageTemplates" })",
fileUrl: function (name) {
var url = "/files/" + name + "/";
return url;
}
},
fileTypes: "*.mp3, *.pdf"
},
tools: ['insertImage', 'insertFile']
});
Controller:
[HttpPost]
[ActionName("Read")]
public object Read()
{
try
{
string path = HttpContext.Current.Request.Params["path"];
var fullPath = System.Web.Hosting.HostingEnvironment.MapPath(@"~/Files/" + path);
DirectoryInfo dir = new DirectoryInfo(fullPath);
var result = dir.GetFiles("*.*").Select(f => new
{
name = f.Name,
type = "f",
size = (long)0,
}).ToList();
return result;
}
catch (Exception e)
{
return null;
//throw new HttpException(404, "File Not Found");
}
}
[HttpPost]
[ActionName("UploadMp3")]
public HttpResponseMessage UploadMp3()
{
var file = HttpContext.Current.Request.Files[0];
try
{
return Request.CreateResponse(HttpStatusCode.Created, new
{
size = file.ContentLength,
name = Guid.NewGuid().ToString(),
type = "f"
});
}
catch (Exception e)
{
return new HttpResponseMessage(HttpStatusCode.BadRequest);
}
}
The file name is not updated whereas it is being updated in the ImageBrowser.
The file name should be updated as in the ImageBrowser.
Dojo example.
<table>
<tbody>
<tr>
<td>
<p>
<span> </span>
</p>
</td>
</tr>
</tbody>
</table>
<table><tbody><tr><td><p><span> </span></p></td></tr></tbody></table>
Both tables are identical, but the first one is formatted.
The Editor has stripped the p and span tags from the first table. The issue is related to the presence of
in the span. If it is replaced with text, the elements are not stripped.
No elements should be stripped from the table.
The toolbar of the inline Editor hides when the user click on a disabled button inside it or on the toolbar itself
The toolbar hides after the user click on it.
The toolbar should stay visible after the user click it
Reproducible in the demos.
An empty column is added to the table.
No empty column added and all the highlighted cells are styled properly.
Reproducible with inline and classic Editor.
Dojo example.
Undo does not work the first time Ctrl + Z keys are pressed. It works, if you press them a second time.
If the keydown event handler is not attached, it works as expected.
Undo works on the first press of Ctrl + Z keys.
Dojo example. Video available in ticket id: 1496525 (first post).
Two new lines are created instead of one.
One new line is created.
When there are bookmarks in a Word file and the text from the Word is pasted in Editor the indention of the text and space of the alignment is changed.
The indention of the list is changed.
The pasted list should look like in the Word document
Reproducible in demos in Chrome.
The Editor's content is focused and the caret is printed.
The caret is not printed.
Reproducible in Chrome and Firefox.
Dojo example
Copy the list from the attached file and paste it in the Editor:
List numeration is duplicated.
The pasted list looks as in the Word document.
We are running into an error using the editor in a panel. After making a second change to content in an editor, this error is thrown:
Uncaught TypeError: Cannot use 'in' operator to search for 'getSelection' in undefined
We're using a template for the panel a with textarea with attribute data-role="editor" to instantiate the editor. We're using an observable with a hierarchical datasource bound to the panel.
Here is a stripped-down dojo to reproduce the error:
https://dojo.telerik.com/UYEtEvAG/2
Have tried all solutions mentioned on previous similar tickets without success. We have also tried iframe vs inline editors.
Thanks in advance for help.
Dojo example.
For more details see Ticket ID: 1478828
A js exception is thrown:
kendo.all.js:78925 Uncaught DOMException: Failed to execute 'setStart' on 'Range': There is no child at offset 3.
No exceptions.
The last row of a table in the Editor cannot be resized.
The upper row will be resized instead.
The last row should be resized.
The ColorPickers in the Editor allow the user to change the text color or the background color of a selection in the component. When the Editor is working in Inline mode, if you select a text and manually enter a value in the HEX input of a ColorPicker, the pre-selected text is no longer selected. No text is colored inside the Editor.
The ColorPicker closes. The selected text in the Editor before opening the ColorPicker is no longer selected. No text in the Editor is in the color entered in the HEX editor.
Clicking on the Apply button of the ColorPicker, after a HEX value is entered, should close the ColorPicker and color the pre-selected text. This correct behavior can be observed in the second Editor in the linked above Dojo example.
When trying to navigate the toolbar of the editor with a keyboard, the focus is stuck/not working for color pickers.
When using Tab(or RightArrow) from the left the focus is stuck on the first colorpicker.
When using Shift+Tab(or LeftArrow) from the right the focus is stuck on the last tool before the colorpicker.
See DOJO: https://dojo.telerik.com/aKOKOwiP
A tester of ours noticed a bug that completely breaks the editor until the page is refreshed.
Script error "Cannot read property 'nodeType' of null" in the console. None of the buttons work until the page is refreshed.
Attached is a video example tested with Dojo editor. Thanks!