Custom toolbar icon in non-custom MenuComponent
(ngx-editor-menu
)
#503
floAtEbcont
started this conversation in
General
Replies: 1 comment 3 replies
-
Docs can be found here https://sibiraj-s.github.io/ngx-editor/en/menu/#custom-menu and A working example can be found here https://sibiraj-s.github.io/ngx-editor/en/examples/codemirror/. Can you refer this example and try once?
it is not possible to add between the existing menu items, can be added only at the end. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I use the default menu component
MenuComponent
(ngx-editor-menu
), but still provide custom buttons?The type of
[toolbar]
would suggest, I should be able to passToolbarCustomMenuItem
callbacks too, but these are never called.Searching through the GitHub Source, I actually cannot find any other reference to
ToolbarCustomMenuItem
than the declaration - has this maybe not been implemented yet or am I missing something?I want to add custom icons in between the default ones.
I am aware that I could use
[toolbar]="[]"
and then add all icons through[customMenuRef]
, but that is tricky asngx-editor
doesn't include the required symbols in its public api (e.g.ToggleCommandComponent
cannot be used externally)Beta Was this translation helpful? Give feedback.
All reactions