Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Adding HTML structure through Document based authoring (Google Docs)

Avatar

Level 2

Hi,

I'm building a website using Edge Delivery Services via document-based Authoring (Google Docs). Is there a possibility of adding custom HTML(span tag) in Google Docs (ref image below)?

 

SahilDh1_0-1715842734725.png

 

@arunpatidar 

3 Replies

Avatar

Community Advisor

@SahilDh1 html tags in EDS end html depend on element you choose for formatting. Generally span tags comes with styling your content.

Avatar

Level 2

@Shashi_Mulugu  the query is about how can we add the HTML tag (eg. Span tag) from the Google Doc itself rather than adding the tag using JavaScript from the code base?

Avatar

Community Advisor

Hi @SahilDh1 
It is not possible to add span tags like in your example.

you can try creating a block and where you can use p tag and style like span or do some javascript manipulation.

 

or you can explore third party google docs plugin which allows insertion of span 

https://webapps.stackexchange.com/questions/50273/how-to-get-inserted-html-to-render-in-google-docs



Arun Patidar