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

Rad Editor Remove unnecessary new lines and spaces paste data from MSWord

1 Answer 169 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jani
Top achievements
Rank 1
Jani asked on 16 Feb 2018, 07:23 AM

Hi Team,

I am using Two Rad Editors, for first RAD Editor set property EditModes="Design". copied  below mentioned data from MS word and paste into Rad Editor. 

ex:  Copy below sample data

       .Parent1
         .Child1
         .Child2
     

<telerik:RadEditor RenderMode="Lightweight" SkinID="BasicSetOfTools" Width="100%" EnableTextareaMode="false" BorderStyle="None"
          runat="server" Content='<%# Bind("Comments") %>' Height="100px" Font-Names="Tahoma"
           ID="txtBox_PEdit" EditModes="Design" StripFormattingOptions="NoneSupressCleanMessage" StripFormattingOnPaste="MSWord">
             <Tools>
                     <telerik:EditorToolGroup>
                     </telerik:EditorToolGroup>
          /Tools>
      </telerik:RadEditor>

After saving data, in Rad editor am seeing unnecessary spaces and new line. please see attached screen shot.

please suggest me how I will remove unnecessary spaces and new lines.

 <telerik:RadEditor RenderMode="Lightweight" SkinID="BasicSetOfTools" EditModes="Preview"
     ID="lbl_Description" Width="99%"  runat="server" Height="100px"  BorderStyle="None"
     Font-Names="Tahoma" Font-Size="11px" Style="margin-bottom: 5px;" Content='<%# Eval("Comments") %>'>
 <Tools  >
      <telerik:EditorToolGroup >
       </telerik:EditorToolGroup>
</Tools>
</telerik:RadEditor>

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Feb 2018, 07:41 AM
Hello Johnny,

Do you experience the reported problem in the following demo: Cleaning MS Word Formatting?

If everything is fine, consider upgrading to the latest version 2018.1.117. 

If you still experience the issue, open a support ticket and provide the Word file with the problematic content.

You can also test by setting the StripFormattingOptions to "NoneSupressCleanMessage" and "MSWordRemoveAll,ConvertWordLists".

Best regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Jani
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or