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 remove Tunes like stretched or with background #149

Closed
SogoCZE opened this issue Jun 5, 2021 · 4 comments
Closed

How to remove Tunes like stretched or with background #149

SogoCZE opened this issue Jun 5, 2021 · 4 comments

Comments

@SogoCZE
Copy link

SogoCZE commented Jun 5, 2021

Hello,

I would like to ask how to remove some special Tunes like stretched, with background, with border etc.

Thanks

Remove There's

@SogoCZE SogoCZE changed the title How to remove Tunes like (stretched or with background) How to remove Tunes like stretched or with background Jun 5, 2021
@neSpecc
Copy link
Contributor

neSpecc commented Jun 6, 2021

You can fork and remove the renderSettings method
https://github.com/editor-js/image/blob/master/src/index.js#L201

@SogoCZE
Copy link
Author

SogoCZE commented Jun 6, 2021

Ok, thanks.

Also I think it would be great if you provide some config options to disable some tunes.

@SogoCZE SogoCZE closed this as completed Jun 6, 2021
@emilkarl
Copy link

You can fork and remove the renderSettings method https://github.com/editor-js/image/blob/master/src/index.js#L201

It doesn’t make sense to create a fork for something like this I think. Would be nice to have it as a setting.

@simpleoo0o
Copy link

import ImageTool from '@editorjs/image'
Object.defineProperty(ImageTool, 'tunes', {
get: function() { return [] }
})

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

No branches or pull requests

4 participants