tui.editor icon indicating copy to clipboard operation
tui.editor copied to clipboard

Export native Toolbar items

Open DNA-PC opened this issue 6 months ago • 0 comments

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 avatar Aug 14 '24 12:08 DNA-PC