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

Customizable Toolbar & Context Menus API #939

Open
ragulpalanisamy opened this issue Feb 27, 2025 · 0 comments
Open

Customizable Toolbar & Context Menus API #939

ragulpalanisamy opened this issue Feb 27, 2025 · 0 comments
Labels
Enhancement Enhance performance or improve usability of original features. Need Discussion Need discussion or investigation

Comments

@ragulpalanisamy
Copy link

ragulpalanisamy commented Feb 27, 2025

Version

Latest version (using the current release)

Development Environment

Tested on Chrome on Windows 10 (should apply to all supported browsers)

Current Behavior

The TUI Image Editor currently renders a fixed toolbar and context menu with items such as Zoom In/Out, History, Hand, Delete, and Delete All. There’s no built-in option to remove or rearrange these items, forcing developers to implement custom workarounds.

// Example: Default initialization with fixed toolbar and submenu items
const imageEditor = new tui.ImageEditor(document.getElementById('editor-container'), {
  includeUI: {
    loadImage: { path: 'sample.jpg', name: 'Sample' },
    theme: {},
    initMenu: 'filter',
    menuBarPosition: 'bottom'
  },
  cssMaxWidth: 700,
  cssMaxHeight: 500,
});

Expected Behavior:

Introduce a built-in API that allows developers to easily enable, disable, and reorder toolbar and context menu items. This enhancement would offer greater UI customization without the need for unofficial hacks, while preserving backward compatibility.

Additional Information:

If further assistance is needed or if there's an opportunity to collaborate on this feature, please ping me. I'm happy to contribute and help improve the editor!

@ragulpalanisamy ragulpalanisamy added Enhancement Enhance performance or improve usability of original features. Need Discussion Need discussion or investigation labels Feb 27, 2025
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