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

Export native Toolbar items #3263

Open
DNA-PC opened this issue Aug 14, 2024 · 0 comments
Open

Export native Toolbar items #3263

DNA-PC opened this issue Aug 14, 2024 · 0 comments
Labels
Enhancement Enhance performance or improve usability of original features. Need Discussion Need discussion or investigation

Comments

@DNA-PC
Copy link

DNA-PC commented Aug 14, 2024

Current Behavior

The perfectly crafted toolbar items aren't available as a constant in any of the packages, which make it difficult to reuse them.

I believe it's possible to call getToolbarState to get them, but that's complicated, and requires to first create the Editor instance to then run getToolbarState to then manipulate those and enable only those we want, and/or add new ones.

Expected Behavior

I wish I could just import them like

import { Bold, Italic, All } from "@toast-ui/editor/toolbarItems"

Something like this would tremendously help customise/extend the toolbar.

@DNA-PC DNA-PC added Enhancement Enhance performance or improve usability of original features. Need Discussion Need discussion or investigation labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Enhance performance or improve usability of original features. Need Discussion Need discussion or investigation
Projects
None yet
Development

No branches or pull requests

1 participant