Hello there,
I'm trying to use both snippets (to make a shortcode for our users to add templated Links) and pasteCleanup option (to prevent any style to be import from a copy paste) but it seems like the pasteCleanUp option is preventing my html tags from snippets to be added.
Here my code :
@(Html.Kendo().Editor()
.Name(ViewData.TemplateInfo.HtmlFieldPrefix)
.HtmlAttributes(new { style = ViewData["style"], @class = ViewData["class"] })
.Resizable(resizable => resizable.Content(true).Toolbar(true))
.Value(@Model)
.Encode(false)
.PasteCleanup(paste => paste.All(true))
.Tools(tools => tools
.Clear()
.Bold().Italic().Underline().Strikethrough()
.JustifyLeft().JustifyCenter().JustifyRight().JustifyFull()
.CreateLink().Unlink()
.TableEditing()
.Snippets(snippets =>
{
snippets.Add("Test", " <a class='testclass' href='www.test.com'>TestLink</a> ");
})
.FontColor().BackColor()
.CleanFormatting()
.ViewHtml()
)
If I don't remove the line
.PasteCleanup(paste => paste.All(true))
All I can get from my snippet is "TestLink" instead of "
<a class='testclass' href='www.test.com'>TestLink</a>
But maybe i'm doing this wrong ?
Thx a lot.
Cordialy
I recently added the editor's table insert/edit feature to a project. My customer immediately showed frustration that you can only apply styles and classes to the entire table or one cell at a time.
It would be great if we could:
Thanks!
Regression introduced in v2019.2.619.
Dojo example.
The "Paste" option is missing from the contextmenu. The only way to make it appear is to right-click the top left corner of the Editor's content area.
The "Paste" option is present in the contextmenu, regardless of where exactly in the Editor's content area the right-click is performed.
Hello,
On MAC, command+c cut instead of copy when selected texts are in a table. To duplicate, please follow these steps.
1. Go here: https://demos.telerik.com/aspnet-mvc/editor
2. Insert a new table.
3. Add some text into the table.
4. Select texts in the table.
5. Press command+c on MAC.
Please advise.
Thank you.
Reproducible in Chrome and IE11. In Firefox highlighting a row and applying formatting (bold) applies it only to the first cell on the row.
strong tags are added under the tr element
strong tags are added only under the td elements.
We are using the Kendo Editor control and need to take actions based on the onChange event firing. We have found that some formatting changes, such as changing the column width in a table doesn't trigger the onChange event.
Is there a work around for this issue. It can be reproduced using your editor event demo here