Here is a simple heading
I do not know how it will go in the future but for now the beauty is
that I can select several table columns + list after the table and
maybe the container and pres cmd + b or ctrl + b
and it transforms the text for each specific item and
doesn't transform components that don't support it.
It's just more complex component
I just called it Article. There is no idea under the component. Only
the idea that you cannot remove description (the second line) and if
you add one line after the title the description will move to the next
paragraph. It doesn't support any inline elements, only plain text.
Just | a | table |
with 2 lines of content | Dummy content |
|
- Bullet list line 1. It represents like a string
- But you can use a component with id. This also works.
-
I did not change the native behavior and if you add one empty line
and another one - it will transform it into paragraph. The same
behavior for the first line.
This is a container component. It can place all the elements its
parent does.
Article
For example the article with no meaning
Container
Empty paragraph
[
{
"id": "1001",
"brick": "Heading",
"value": "Here is a simple heading"
},
{
"id": "1002",
"brick": "Paragraph",
"value": "\n I do not know how it will go in the future but for now the beauty is\n that I can select several table columns + list after the table and \n maybe the container and pres <em>cmd + b</em> or <em>ctrl + b</em>\n and <strong>it transforms the text for each specific item</strong> and \n <strong>doesn't transform components that don't support it</strong>.\n "
},
{
"id": "1003",
"brick": "Article",
"title": "It's just more complex component",
"description": "\n I just called it Article. There is no idea under the component. Only\n the idea that you cannot remove description (the second line) and if\n you add one line after the title the description will move to the next\n paragraph. It doesn't support any inline elements, only plain text.\n "
},
{
"brick": "Table",
"id": "1004",
"children": [
[
"Just",
"a",
"table"
],
[
"with 2 lines of content",
"<strong>Dummy</strong> content",
""
]
]
},
{
"brick": "List",
"id": "1005",
"children": [
"Bullet list line 1. It represents like a string",
{
"id": "1006",
"brick": "ListItem",
"value": "But you can use a component with id. This also works."
},
{
"id": "1007",
"brick": "ListItem",
"value": "\n I did not change the native behavior and if you add one empty line \n and another one - it will transform it into paragraph. The same \n behavior for the first line.\n "
}
]
},
{
"brick": "Container",
"id": "1008",
"children": [
{
"brick": "Paragraph",
"id": "1009",
"value": "\n This is a container component. It can place all the elements its \n parent does.\n "
},
{
"id": "1010",
"brick": "Article",
"title": "Article",
"description": "For example the article with no meaning"
}
]
},
{
"brick": "Paragraph",
"id": "1011",
"value": "Empty <strong>paragraph</strong>"
}
]