medium-editor-tables
medium-editor-tables copied to clipboard
How to override medium editor table toolbar icon
How to override medium editor table toolbar icon. Is there any option or i have to do it manually or I have to change is .js file Thanks.
@durgeshahire4 I believe you can do this by passing in contentDefault
and/or contentFA
options when instantiating MediumEditorTable
itself.
These are the options by default:
contentDefault: 'TBL'
contentFA: '<i class="fa fa-table"></i>'
So it's using 'TBL' by default and the fa-table
font-awesome icon if you're using font-awesome mode. I believe you can override these to whatever you want just by passing an html string in the MediumEditorTable
constructor:
new MediumEditorTable({
contentDefault: 'TABLE!',
contentFA: '<b>TABLE!</b>'
})