Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Add a new Button in toolbar #219

Open
indigofa opened this issue Apr 15, 2020 · 2 comments
Open

Add a new Button in toolbar #219

indigofa opened this issue Apr 15, 2020 · 2 comments

Comments

@indigofa
Copy link

Hi,

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

thanks,
F

@michelson
Copy link
Owner

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

@indigofa
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants