Telerik Forums
Kendo UI for jQuery Forum
1 answer
146 views
The editor I am replacing with the Kendo MVC editorFor had a text area I could paste a hex color into. There are other colorpickers in Kendo that can do this, like this one. Am I able to somehow use this with the editorFor ForeColor an BackColor? Ideally in the cshtml, or in the jquery if there is a path for that to work.
Ivan Danchev
Telerik team
 answered on 28 Mar 2023
1 answer
268 views

Hi Team,

I would like to get selected text along with html tags but getting only plain text by using

editor.getSelection() or editor.getRange() methods. Please help me to get html selected text 
Georgi Denchev
Telerik team
 answered on 28 Mar 2023
1 answer
82 views

We are seeing an error when pasting an image from a Microsoft Word document into the Kendo editor.  This can be reproduced on the demo site by creating a new Word document and selecting the Resume template, then copying the profile image out of Word and pasting it into the editor.

The error reported is:

Uncaught TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.
    at _fileToDataURL (kendo.all.js:313050:21)
    at Function.map (jquery.min.js:2:3630)
    at init._insertImages (kendo.all.js:313050:21)
    at init._handleImagePaste (kendo.all.js:313050:21)
    at init.onpaste (kendo.all.js:313050:21)
    at cut copy paste drop dragover (kendo.all.js:313050:21)
    at HTMLBodyElement.dispatch (jquery.min.js:3:12445)
    at r.handle (jquery.min.js:3:9174)

The problem is that because this error is thrown, the paste command is never executed in our code for processing the image.  Please let me know if there is anything we can do about this error.

Thanks,

Bob

 

Neli
Telerik team
 answered on 13 Mar 2023
2 answers
49 views
But there are still a few little things.

When you press ENTER it still doesn't look great.
Oh and one more thing - how to set the width and height of the popup window..
And how to remember the last frame width and height.
Note I have three such editors in one frame

I have a recording:
https://watch.screencastify.com/v/lpBHsoWj1kuYKx5CgMiD
Paweł Korczak
Top achievements
Rank 1
Iron
 answered on 03 Mar 2023
1 answer
119 views

Hallo,
i added a custom tool in the editor and am using it to add horizontal tab.
I'm using inserthtml for this, but after adding the tab span, the previous format isn't retained.

How can I add the span for tab inside the previous format span? Or in other words, how can I continue the previous format?

any ideas?

You can test it like this:
1- press the custom tab tool button to activate the tab key
2- enter a text and make font size eg. 16px
3- then press tab key on keyboard
4- then enter a new text again

formatting is lost



Example:
Tab on/off | Kendo UI Dojo (telerik.com)


function onTabKeyClicked(e){ if (isTabOn){ e.preventDefault(); editor.exec("inserthtml", { value: '<span style="white-space:pre;tab-size:0.25in;">&#9;</span>' });
} }


thank you in advance

Sebahattin
Top achievements
Rank 1
Iron
 updated answer on 01 Mar 2023
1 answer
62 views

When a table is resized in the editor using the inner borders, how can I get the event to determine this has happened?  I can see that the select event is fired, but I don't know how to determine it was from a resize of the inner borders of a table.  I have tried this code:

      select: (e) => {
        if ((e.sender?.columnResizing?._resizable !== null) || (e.sender?.rowResizing?._resizable !== null))
          this.handleEditorTableResizeValueChanged(e.sender.body?.innerHTML);
      }

However, this code does not seem reliable.  Sometimes it works and _resizeable is not null, but other times it is null until the next select event as if there is a delay.  Can you please provide insight to a reliable way to get this resize event?

Thanks,

Bob

Georgi Denchev
Telerik team
 answered on 01 Mar 2023
0 answers
53 views
2 answers
122 views

Is there a button on the toolbar that enables a Symbol picker dialog like that found in MS Word? Is there a  better option than using ALT codes for a user to type in French accented characters? I don't want to change the localization of the editor - I want to present the editor in English but make it easier for a French user to enter French text. ALT codes and pasting from Word work but not really optimal.

 

Thanks.

Darrin Jioras
Top achievements
Rank 1
Iron
 answered on 26 Jan 2023
2 answers
662 views

When i use the editor inside a bootstrap modal the "insert hyperlink" shows the window but i can not write in the fields.

Example:
http://jsfiddle.net/keebj1t3/

Janson
Top achievements
Rank 2
Iron
Iron
 answered on 26 Jan 2023
1 answer
58 views

How to change the editor>insert link default web address content  from "http://" to "https://"

See screenshot

 

 

Lyuboslav
Telerik team
 answered on 01 Nov 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?