New object is created, for every line of paragraph

Hello,

New object is created whenever we have new line encountered in a paragraph.

Scenario:
Suppose we want to write a paragraph, after completing text in first line as soon as we go to next line in same paragraph new objects get created.

EXAMPLE :
This is where I add extra content in your default paragraph and you can see multiple objects have been made in below code of it.
{
"characterFormat": {},
"text": "touring bicycle product group."
},
{
"characterFormat": {
"bidi": false
},
"text": " "
},
{
"characterFormat": {
"bidi": false
},
"text": "This is where I'm adding a new line which will exceed the current line of "
},
{
"characterFormat": {
"bidi": false
},
"text": "the para and make a new line in it ."
}

Below I have added screenshot where I have added extra content in default paragraph and We observer multiple objects are created in addition to current paragraph text.




We are in urgent request for this. Its a humble request to please provide some solution over it.

Or we can have quick call on top of this.

Thanks for your time and consideration, we look to hear from you asap.

Regards,
Prithvi

Co-Founder ,Head of Innovations

Solytics Partners LLC

Consulting| Analytics| Solutions

www.solytics-partners.com |[email protected]

Phone: +91 8197281609


3 Replies 1 reply marked as answer

SM Suriya Murugan Syncfusion Team January 8, 2021 10:58 AM UTC

Hi Prithivinath, 

Syncfusion Greetings! 

Can you please confirm below details? 
 
## New object is created whenever we have new line encountered in a paragraph. 
 
When you enter text after “touring bicycle product group.”, are you saying that new object creating for newly enter text? Eg. "This is where I'm adding a new line which will exceed the current line of " 
 
For your information, if you change format eg.”bold” for some text, that will maintain in different object in same line. 
 
 
For above first line, 3 inline object we will maintain. 
 
Also, we will create different object for every line. 
 
Can you please share your exact use scenario? what is the purpose of accessing this json detail? We will validate the case and provide you solution at earliest. 
 
Regards, 
 
Suriya M. 


Marked as answer

YU Yuliia replied to Suriya Murugan September 8, 2021 01:42 PM UTC

Hello! I see the same behaviour. Your example https://ej2.syncfusion.com/react/demos/?_ga=2.30936447.1944405803.1627288834-615821001.1620994270#/material/document-editor/default . I downloaded sfdt file and there lines were divided into many objects. For example (second paragraph)


Thanks!



KB Kurthis Banu Abdul Majeeth Syncfusion Team September 9, 2021 12:36 PM UTC

Hi Yuliia, 

We are cross checked your requirement. In Document editor we have split the text line by line for lay outing and use the same to generate the sfdt. In MS word have some specification to split the sentence(words). Also, these will not break or make any significant impact to display the document in Document Editor. 

In document editor, paragraph has multiple line. Similar to paragraph tag has some multiple span tag. Like below example, 

<p><span>Hello</span><span>world</span></p> (Hello world) 


So, could you please your share us more details about what kind of issue you have faced of that with your use case in detailed, which will be helpful for us to investigate further and provide you the solution at the earliest. 


Regards, 
Kurthis Banu A. 


Loader.
Up arrow icon