dante2 icon indicating copy to clipboard operation
dante2 copied to clipboard

Add a new Button in toolbar

Open indigofa opened this issue 5 years ago • 2 comments
trafficstars

Hi,

Can someone tell me how can I add a new functionality in toolbar like text strike and text highlight

thanks, F

indigofa avatar Apr 15 '20 21:04 indigofa

this could help: https://michelson.github.io/dante2/#/src-tooltips also you can implement your own toolbar with your own logic

michelson avatar Apr 16 '20 01:04 michelson

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

indigofa avatar Apr 16 '20 10:04 indigofa