Hi Team,
I would like to request to have it built-in to include the font specifications, such as the name, size, etc, within the inherited font messages of the Kendo UI Editor.
Thank you!
We are trying to prevent users from dropping an image file from their computer directly onto the Editor with Firefox. When this happens the browser converts the image into a uri encoded version of the image. When we define a custom PasteCleanup function to handle this, the Editor will sometimes work as expected but other times it will throw an error when trying to execute the function. This seems to be random after each page load.
Please note that the reproduction of the error is inconsistent. However the CustomPasteCleanUp doesn't prevent the addition of the image, nor does the prevention of the Drop event.
Screen capture of reproduction in ASP .NET Core.
Screen capture of reproduction in Dojo.
More information about issue and reproduction available in ticket: 1534730
An image file that is dragged and drop by the user to the Editor is always added to the widget.
The current behavior should be preventable and an error must not occur.
Describe the bug
In version 2022.1.119 when the Editor is placed in the same container with another element that also has width:100% the Editor is visibly wider.
To reproduce
Expected behavior
The Editor's width should not be overridden
Affected package (please remove the unneeded items)
Affected suites (please remove the unneeded items)
Affected browsers (please remove the unneeded items)
Build system information (please remove the unneeded items)
Additional context
Issue not reproducible with Less Themes
When the user creates a folder and tries to add a file to the Editor an error occurs that the file is not found. This behavior is observed only if the application is Core 3.1.
Currently, in the console, an error 404 occurs that the resource is not found.
The image should be added to the Editor without errors.
Reproducible in the demos.
Resize handles duplication
No duplication of the resize handles
When the Editor is configured by using tagHelpers and the configuration of the tools is on multiple lines additional new lines are added to the Editor content due to the tags used for the tool's configuration.
<button onclick="getValue()">get Value</button>
Test-1:<br /><br /><br /><br />
<kendo-editor name="test1" tag="div" >
<tools>
<tool name="viewHtml" />
</tools>
</kendo-editor>
<script>
function getValue() {
var editor1 = $("#test1").data("kendoEditor");
console.log(editor1.value())
};
</script>
The value of the editor has additional new lines. The additional lines could be observed also in the 'viewhtml' tool. (screencast)
There should be no additional new lines added to the Editor's content.
Configure the Editor on a single line
<kendo-editor name="test1" tag="div"><tools><tool name="viewHtml" /></tools></kendo-editor>
Currently out of all buttons the mentioned above can't have custom tooltip messages given to them with the .Messages() method. If a user wants to localize the buttons to a different language, they won't be able to do it without the use of additional JS logic for these 4 specific buttons (see attached screenshot).
As a workaround, the following code is used to achieve this behavior:
<script>
$(document).ready(function () {
changeBtnMessages()
})
function changeBtnMessages() {
var mergeCellsHorizontallyBtn = document.querySelector('[aria-label="Merge cells horizontally"]'); // Get the first button with this specific aria-label property
var parent = mergeCellsHorizontallyBtn.parentElement // Get its parent element which is being also a parent to the other 3 buttons
var children = parent.children // Get all the 4 buttons alltogether
var customTitles = ["sample title 1", "sample title 2", "sample title 3", "sample title 4"] // Here are the custom messages(title) that will be applied, be sure to change them in your application
for (var i = 0; i <= children.length; i++) {
$(children[i]).prop('title', customTitles[i]) // Iterate through them and set the message to each one of them
}
}
</script>
### Bug report
When adding a custom tool with a template in the Editor, the hash-template syntax is treated as a string.
### Reproduction of the problem
A Dojo sample for reproduction: https://dojo.telerik.com/iwikOpul
### Expected/desired behavior
The hash literals should be parsed correctly to display the respective data.
### Environment
* **Kendo UI version: 2023.1.314
* **Browser: [all]