Paste with existing formatting

There's an issue with pasting content with the option mergeWithExistingFormatting. This also happens with pasting content directly into the document editor.
I'm copying HTML from a page and pasted into the document editor. When I select the use destination formatting
All Paragraph font is changed to Normal.


1 Reply

DS Dhanush Sekar Syncfusion Team September 26, 2024 01:17 PM UTC

Hi Samuel,


I'm facing an issue with using existing formatting of the document editor. Whenever I paste external content into the document editor and use destination formatting it change all text to Normal. 

When the MergeWithExistingFormatting option is utilized, it integrates the formatting with the pre-existing format in the document. If the document is empty, it merges with the default format present. This behavior is inherent to Word and is not a defect. For your convenience, we have attached a video demonstration for better understanding.

If I revert to source formatting and then to destination formatting then it shows the correct paragraph like "heading 1" or 2 etc but the font size still incorrect.

We were unable to reproduce the reported issue in our latest version, v27.1.50. We have attached a sample and video for your reference. 

Sample: Imyoeb (forked) - StackBlitz


https://www.nuget.org/packages/Syncfusion.Ej2.Wordeditor.ASPNet.Core/

https://www.nuget.org/packages/Syncfusion.Ej2.Wordeditor.ASPNet.MVC5/

 


Regards,

Dhanush S


Attachment: MergeWithExistingFormat_(1)_22f5baa.zip

Loader.
Up arrow icon