Skip to main content

Monday doc blocks and delta format

  • November 5, 2024
  • 7 replies
  • 25 views

Is there any documentation on how to work with monday doc blocks i.e. delta format? All I got was that it uses quill delta library. However, the information available on quill delta does not seem to be enough and there seem to be more going on in the monday doc delta format blocks. Is there any documentation available on this?

7 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • 3512 replies
  • November 6, 2024

Hello there @manishaghosh ,

If you want to build a specific query and can’t find how to do that, please feel free to fill this form explaining exactly what you want to achieve and the error you see and our team will take a look into it!


  • Author
  • Participating Frequently
  • 20 replies
  • November 6, 2024

Hi @Matias.Monday ,

Thank you for your reply. I am just trying to figure out how I can parse the delta blocks. Is there a straight forward way to do that? I am able to fetch the blocks fine using the api. I was wondering if there is a way I can convert the delta blocks to plain HTML or anything similar. Thanks again.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • 3512 replies
  • November 7, 2024

Hello again @manishaghosh,

You mean that you want to retrieve the delta blocks via API, and use the result to create HTML code? Am I understanding correctly?


  • Author
  • Participating Frequently
  • 20 replies
  • November 7, 2024

Hi @Matias.Monday ,

Yes that is correct. The retrieving part is what I have done successfully. What I’m stuck on is, how should I parse these delta blocks.

For example, if I get the following for a list in my monday doc, how should I parse it? Is writing individual logic on my own for each type of block (normal text, headings, list, table etc.) the only way? Thanks again!

{
	"id": "7f8c145-989f-48bb-b7f8-dc8f91690g42",
	"type": "check list", 
	"content": {
		"alignment": "right", // "left", "right", or "center"
		"direction": "rtl", // "ltr" or "rtl"
		"deltaFormat": [{
			"insert": "block 1"
		}],
		"indentation": 1,
		"checked": true // checks or unchecks a box
	}
}

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • 3512 replies
  • November 10, 2024

Hello again @manishaghosh,

monday does not offer an out-of-the-box feature for this.

So in this case, yes, you should create a logic on your end to “translate” what you retrieve successfully via API into HTML code you can use.

Cheers,
Matias


  • Author
  • Participating Frequently
  • 20 replies
  • November 10, 2024

@Matias.Monday , Thank you for the the info. 👍


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • 3512 replies
  • November 11, 2024

Happy to help @manishaghosh !