This is a migrated thread and some comments may be shown as answers.

How to Use PasteCleanup feature in kendo editor - Asp.Net MVC

1 Answer 367 Views
Editor
This is a migrated thread and some comments may be shown as answers.
vibhor
Top achievements
Rank 1
vibhor asked on 18 Jul 2016, 04:07 AM

I am using the paste cleanup feature with version 2016.2.504 


I am getting error.
Kendo.MVC.UI.Fluent.EditorBuilder' does not contain a definition for 'PasteCleanup' and no extension method 'PasteCleanup' accepting a first argument of type 'kendo.MVC.UI.Fluent.EditorBuilder' could be found.


Could you please help in this?

 

Just to add more details to above query -


Here is my kendo editor definition like tbelow:


@(Html.Kendo().Editor()
            .Name("ManuscriptFormTextEditor")
             .PasteCleanup(p => p
                    .All(false)
                    .Css(false)
                    .KeepNewLines(false)
                    .MsAllFormatting(false)
                    .MsConvertLists(true)
                    .MsTags(true)
                    .None(false)
                    .Span(false)
                 )                 
            .Tools(tools => tools
                  .Clear()                
                  .Bold().Italic().Underline().Strikethrough()
                  .JustifyLeft().JustifyCenter().JustifyRight().JustifyFull()
                  .InsertUnorderedList().InsertOrderedList()
                  .Outdent().Indent()
                  //.CreateLink().Unlink()
                  //.InsertImage()
                  //.InsertFile()
                  .SubScript()
                  .SuperScript()
                  .TableEditing()
                  //.ViewHtml()
                  .Formatting()
                  .CleanFormatting()
                  //.FontName()
                  .FontName(items => items
                            .Add("Arial", "Arial")
                            .Add("Arial Narrow", "Arial Narrow")
                            .Add("Calibri", "Calibri")
                            .Add("Courier New", "Courier New")
                            .Add("Tahoma", "Tahoma")
                            .Add("Times New Roman", "Times New Roman")
                            .Add("Verdana", "Verdana")                                                        
                            )
                  //.FontSize()
                  .FontSize()
                  .FontColor().BackColor()
                  //.Print()
              )
              .HtmlAttributes(new { style = "width: 100%;height:500px;text-align:center;font-size:14px;" })
              .Encode(false)
              .Value(@<text>@Html.Raw(@ViewBag.ManuscriptFormText)</text>)
    )     


It is not throwing any error if i remove the code :
 .PasteCleanup(p => p
                    .All(false)
                    .Css(false)
                    .KeepNewLines(false)
                    .MsAllFormatting(false)
                    .MsConvertLists(true)
                    .MsTags(true)
                    .None(false)
                    .Span(false)
                 )

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 18 Jul 2016, 08:41 AM
Hi,

Thank you for contacting us.

I tested the provided code, but I was not able to reproduce the problem. For you convenience I am attaching a small video with my test. Just run the swf file in the archive in an adobe flash enabled browser and  tell me if I am doing anything wrong in the test.

Could you confirm that the version of Kendo.Mvc.dll you are referencing is in fact 2016.2.504?




Regards,
Stanimir
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Editor
Asked by
vibhor
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or