EDS with Document based authoring - issue with new line | Community
Skip to main content
AshwiniSathe1
Level 3
October 1, 2024
Solved

EDS with Document based authoring - issue with new line

  • October 1, 2024
  • 2 replies
  • 1215 views

When I am adding a new empty line in a Sharepoint document it is taking as a section. Is this an expected behaviour? 

Also when adding a new empty line inside any default blocks like column, cards it is getting truncated and not visible on preview of the doc. Is anyone come across this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

@arunpatidar This is behaviour I have seen in Columns, cards block for the truncating the new line.


Hi @ashwinisathe1 
I have tried with google doc, I don't see new section has been added, you can check below link

https://main--aem-helix-1--arunpatidar02.hlx.page/blocks/cards

 

2 replies

arunpatidar
Community Advisor
Community Advisor
October 9, 2024

Hi @ashwinisathe1 
New line would not be considered as section but it may be a new line and your block may treated that differently.

It in the block.js that basically parse all the element in HTML markup and arrange in predefined layout based on block.js logic.

 

So please change cards.js logic to accommodate new line.

Arun Patidar
AshwiniSathe1
Level 3
October 11, 2024

@arunpatidar I am talking about the new line in default content like text, heading there it is taking a section even if horizontal line/ 3 dashes not there. 

And for the blocks it is truncating. Also where can we find the block.js?

arunpatidar
Community Advisor
Community Advisor
October 15, 2024

Hi @ashwinisathe1 

You can check the various blocks at

https://github.com/arunpatidar02/aem-helix-1/tree/main/blocks 

 

You can check authoring details at https://www.aem.live/docs/authoring

 

Can you check for which blocks are you seeing this issue? 

Arun Patidar
kautuk_sahni
Community Manager
Community Manager
November 5, 2024

@ashwinisathe1 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni