Completed
Last Updated: 12 Apr 2022 14:44 by ADMIN
Release R2 2022
Narendran
Created on: 12 Apr 2022 14:35
Category: Editor
Type: Bug Report
0
Copied text-indent content from MS Word are not retaining same indentation
Steps to repro:

I've verified your demo version also in that also able to replicate the issue. So can you please support us.

Scenario:-

  1. Create a Word document and indent a few lines in it
  2. Copy the content with Ctrl+A and Ctrl+V
  3. Open our Telerik Editor tool in that open Paste from word, Strip font option
  4. Paste the content and insert it

You will see that the text-indent inline styles are stripped down and the indentation is missing.

1 comment
ADMIN
Rumen
Posted on: 12 Apr 2022 14:37

Hi Narendran,

Thank you for the bug report!

It will be fixed in the next R2 2022 major version of Telerik UI for ASP.NET AJAX.

The workaround you can use till the appearance of the new version is the JavaScript array below which adds the text-indent option to the cssPropertiesToKeep array:

 

            <script>
                Telerik.Web.UI.Editor.Utils.cssPropertiesToKeep = ['color', 'background', 'backgroundColor', 'background-color', 'opacity',
                    'height', 'width',
                    'margin', 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft',
                    'padding', 'padding-top', 'padding-right', 'padding-bottom', 'padding-left', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft',
                    'font-size', 'fontSize', 'font-family', 'fontFamily', 'font-weight', 'fontWeight', 'fontStretch', 'fontStyle', 'fontVariant',
                    'border', 'borderSpacing', 'border-top', 'borderTop', 'border-right', 'borderRight', 'border-bottom', 'borderBottom', 'border-left', 'borderLeft',
                    'borderColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor',
                    'borderStyle', 'borderTopStyle', 'borderRightStyle', 'borderLeftStyle', 'borderBottomStyle', 'borderWidth',
                    'listStyleType', 'listStyleImage',
                    'text-align', 'textAlign', 'text-decoration', 'textDecoration', 'letterSpacing', 'start', 'line-height', 'text-indent']
            </script>
            <telerik:RadEditor ID="RadEditor1" runat="server"></telerik:RadEditor>

 

Best Regards,
Rumen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.