2016-06-21 19:34:51 -07:00
{
"nodes" : [
{
"kind" : "block" ,
"type" : "paragraph" ,
"nodes" : [
{
"kind" : "text" ,
2016-07-25 14:45:37 -07:00
"text" : "Since the editor is based on a recursive tree model, similar to an HTML document, you can create complex nested structures, like tables:"
2016-06-21 19:34:51 -07:00
}
]
} ,
{
"kind" : "block" ,
"type" : "table" ,
"nodes" : [
{
"kind" : "block" ,
"type" : "table-row" ,
"nodes" : [
{
"kind" : "block" ,
"type" : "table-cell" ,
"nodes" : [
{
"kind" : "text" ,
"ranges" : [
{
2016-07-25 14:45:37 -07:00
"text" : ""
2016-06-21 19:34:51 -07:00
}
]
}
]
} ,
{
"kind" : "block" ,
"type" : "table-cell" ,
"nodes" : [
{
"kind" : "text" ,
"ranges" : [
{
"text" : "Human" ,
"marks" : [
{
"type" : "bold"
}
]
}
]
}
]
} ,
{
"kind" : "block" ,
"type" : "table-cell" ,
"nodes" : [
{
"kind" : "text" ,
"ranges" : [
{
"text" : "Dog" ,
"marks" : [
{
"type" : "bold"
}
]
}
]
}
]
} ,
{
"kind" : "block" ,
"type" : "table-cell" ,
"nodes" : [
{
"kind" : "text" ,
"ranges" : [
{
"text" : "Cat" ,
"marks" : [
{
"type" : "bold"
}
]
}
]
}
]
}
]
} ,
{
"kind" : "block" ,
"type" : "table-row" ,
"nodes" : [
{
"kind" : "block" ,
"type" : "table-cell" ,
"nodes" : [
{
"kind" : "text" ,
"ranges" : [
{
"text" : "# of Feet" ,
"marks" : [
{
"type" : "bold"
}
]
}
]
}
]
} ,
{
"kind" : "block" ,
"type" : "table-cell" ,
"nodes" : [
{
"kind" : "text" ,
"ranges" : [
{
"text" : "1"
}
]
}
]
} ,
{
"kind" : "block" ,
"type" : "table-cell" ,
"nodes" : [
{
"kind" : "text" ,
"ranges" : [
{
"text" : "4"
}
]
}
]
} ,
{
"kind" : "block" ,
"type" : "table-cell" ,
"nodes" : [
{
"kind" : "text" ,
"ranges" : [
{
"text" : "4"
}
]
}
]
}
]
} ,
{
"kind" : "block" ,
"type" : "table-row" ,
"nodes" : [
{
"kind" : "block" ,
"type" : "table-cell" ,
"nodes" : [
{
"kind" : "text" ,
"ranges" : [
{
"text" : "# of Lives" ,
"marks" : [
{
"type" : "bold"
}
]
}
]
}
]
} ,
{
"kind" : "block" ,
"type" : "table-cell" ,
"nodes" : [
{
"kind" : "text" ,
"ranges" : [
{
"text" : "1"
}
]
}
]
} ,
{
"kind" : "block" ,
"type" : "table-cell" ,
"nodes" : [
{
"kind" : "text" ,
"ranges" : [
{
"text" : "1"
}
]
}
]
} ,
{
"kind" : "block" ,
"type" : "table-cell" ,
"nodes" : [
{
"kind" : "text" ,
"ranges" : [
{
"text" : "9"
}
]
}
]
}
]
}
]
} ,
{
"kind" : "block" ,
"type" : "paragraph" ,
"nodes" : [
{
"kind" : "text" ,
2016-07-25 14:45:37 -07:00
"text" : "This table is just a basic example, but you could augment it to add support for table headers, adding column and rows, or even formulas if you wanted to get really crazy..."
2016-06-21 19:34:51 -07:00
}
]
}
]
}