Adding HTML structure through Document based authoring (Google Docs) | Community
Skip to main content
Level 2
May 16, 2024
Solved

Adding HTML structure through Document based authoring (Google Docs)

  • May 16, 2024
  • 3 replies
  • 1131 views

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

 

 

@arunpatidar 

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

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

3 replies

Shashi_Mulugu
Community Advisor
Community Advisor
May 16, 2024

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

SahilDh1Author
Level 2
May 17, 2024

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

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
May 27, 2024

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
kautuk_sahni
Community Manager
Community Manager
June 4, 2024

@sahildh1 Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni