You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Editor.js Block Tune allows applying one of defined text variant: Call-out, Citation, and Details to any block.
Variants
Call-out
For important information the author wants to emphasize.
Citation
To cite some full-text from a different source without using the Quote tool.
Details
To add some information that is less important.
How to use
Install
yarnadd @editorjs/text-variant-tune
Connect
importEditorJSfrom'@editorjs/editorjs';importTextVariantTunefrom'@editorjs/text-variant-tune';/** * Editor.js configuration */consteditor=newEditorJS({/** * Connect tool */tools: {textVariant: TextVariantTune},/** * Apply to all the blocks */tunes: ['textVariant'],// ...})
Optionally, you can connect this Tune only for specified blocks:
importEditorJSfrom'@editorjs/editorjs';importTextVariantTunefrom'@editorjs/text-variant-tune';/** * Editor.js configuration */consteditor=newEditorJS({tools: {textVariant: TextVariantTune,paragraph: {// apply only for the 'paragraph' tooltunes: ['textVariant'],}},})
About
CodeX is a software engineering club unifying passionate engineers and designers around the world interested in making high-quality open-source projects and getting a priceless experience of making full-valued products on a global market.