Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

EDS with Document based authoring - issue with new line

Avatar

Level 3

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?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

5 Replies

Avatar

Community Advisor

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

Avatar

Level 3

@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?

Avatar

Community Advisor

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

Avatar

Level 3

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

Avatar

Community Advisor

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

 



Arun Patidar