medium-editor-tables icon indicating copy to clipboard operation
medium-editor-tables copied to clipboard

How to override medium editor table toolbar icon

Open durgeshahire4 opened this issue 8 years ago • 1 comments

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 avatar Aug 03 '16 11:08 durgeshahire4

@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>'
})

nmielnik avatar Aug 20 '16 13:08 nmielnik