Custom button supporting <small> tag #487
-
I saw plugins and schema in the documentation (https://sibiraj-s.github.io/ngx-editor/en/introduction/) but I don't really understand how to add my own button to the toolbar. If can't be done, maybe a div with a class? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Yeah. I do agree few parts of the docs needs improvement. May be you can follow this example from code mirror? https://sibiraj-s.github.io/ngx-editor/en/examples/codemirror/ It also has stackblitz for code reference, It has both custom node implementation as well as custom button in toolbar. |
Beta Was this translation helpful? Give feedback.
-
@sibiraj-s I see that the schema is responsible for custom html tags, but how to add the "small" button to the toolbar now?
Angular ts:
Angular html:
|
Beta Was this translation helpful? Give feedback.
-
I was looking kind of feature. |
Beta Was this translation helpful? Give feedback.
See https://sibiraj-s.github.io/ngx-editor/en/menu/#custom-menu. You should find the example for this in the codemirror demo as well