dante2
dante2 copied to clipboard
Add a new Button in toolbar
Hi,
Can someone tell me how can I add a new functionality in toolbar like text strike and text highlight
thanks, F
this could help: https://michelson.github.io/dante2/#/src-tooltips also you can implement your own toolbar with your own logic
Hi @michelson how can I keep all the toolbars what already exist and just add text strike and text highlights how this will be implemented in convertToHTML
can you please explain about this example
block_types: [{
label: 'italic',
style: 'ITALIC', // What is this used for, and how can I target on convertToHTML
type: 'inline', Does this mean anything for convertToHTML
icon: Icons.italic // Is Icon react component?
}],
Why in convertToHTML the link is available to be targeted on entityToHTML method and some other elements like code-block, image are available to be targeted onblockToHTML does this related to the block_types defined in type: 'inline' vs type: 'block'
thank you