Convert Slate JSON with slateToTemplate
Change configuration
Default
slateToTemplate
Demo
Try changing the contents of this editor. The rest of the page updates as you make changes to demonstrate:
- the Slate JSON value;
- content rendered using the
slateToTemplate.
slateToTemplate
Demo
Try changing the contents of this editor. The rest of the page updates as you make changes to demonstrate:
- the Slate JSON value;
- content rendered using the
.slateToTemplate
{
children: [
{
text: 'slateToTemplate'
}
],
type: 'h2'
}
{
children: [
{
text: 'Demo'
}
],
type: 'h3'
}
{
type: 'p',
children: [
{
text: 'Try changing the contents of this editor. The rest of the page updates as you make changes to demonstrate:'
}
]
}
{
type: 'ul',
children: [
{
children: [
{
text: 'the Slate JSON value;'
}
],
type: 'li'
},
{
type: 'li',
children: [
{
text: 'content rendered using the '
},
{
text: 'slateToTemplate',
code: true
},
{
text: '.'
}
]
}
]
}