Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to override medium editor table toolbar icon #32

Open
durgeshahire4 opened this issue Aug 3, 2016 · 1 comment
Open

How to override medium editor table toolbar icon #32

durgeshahire4 opened this issue Aug 3, 2016 · 1 comment
Labels

Comments

@durgeshahire4
Copy link

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.

@nmielnik
Copy link
Member

nmielnik commented Aug 20, 2016

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

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

No branches or pull requests

2 participants