7 Answers, 1 is accepted
Hello Luigi,
Tab characters are collapsed in HTML content, so it is likely that this causes the issue -- can you please provide the pasted content and more detailed steps to reproduce this?
Regards,Alex Gyoshev
Telerik
Hi Alex,
Attached the file from which copied and pasted, and here the test done: http://dojo.telerik.com/akoP
Hello Luigi,
Since the linked Dojo shows a Grid widget, I tried pasting in the editor online demo. Indeed, tabs are not persisted, which happens because HTML collapses spaces. We have no plans to introduce handling of tabs in that way, but you can process the content in a the paste event handler, and provide the correct markup to the editor (perhaps even converting the tab-separated data to a HTML table).
Regards,Alex Gyoshev
Telerik
Hi Alex,the problem is that the bug was introduced with newest release, the only solution was to replace the kendo editor with a razor textarea. Now it works but it is a workaround.
Hello Luigi,
Here is an example that shows how to replace tab characters via the paste event.
Regards,Alex Gyoshev
Telerik
Thanks but this is not what I need, I need to post text without any changes the \t must be remain the same, and posting this content encoded with encodeURIComponent on the server side the text will be manipulated as as simple text.
I don't need the html text I need the text flat as copied.
Many Thanks
Hello Luigi,
This is not supported anymore, as tab characters do not make sense in the HTML context without being preformatted. These can either be converted to tables or replaced with whitespace, but keeping them as tabs is confusing to users, as there is no visual difference between the whitespace.
Regards,Alex Gyoshev
Telerik