wermerb / trumbowyg-ngx

Angular 5 component & directive for Trumbowyg WYSIWYG editor.
MIT License
1 stars 1 forks source link

How do you include custom menu dropdown groups? #3

Open 1-0-1 opened 6 years ago

1-0-1 commented 6 years ago

I've just started working with this and once I figured out how to import the component into my application it is working well. You have a non-standard alias for the component name and once I figured that out, I could re-alias it as expected.

import { ɵa as EditorComponent } from 'trumbowyg-ngx';

I would like to include some menu icons combined into dropdown selections. In the Base64 plugin on the Trumbowyg site, they demonstrate adding custom drop downs in the menu containing multiple menu items. btnsDef: { // Create a new dropdown image: { dropdown: ['insertImage', 'base64'], ico: 'insertImage' } } I tried this in the module in the TrumbowygNgxModule.withConfig section, but it throws an error on build.

wermerb commented 6 years ago

Hi,

Since you did not provide any error log, I assume your issue was related to type checking. I published a new version which is supports dropdown button configuration.

If your issue still persists please provide the error message.