Closed stockmind closed 6 years ago
Nevermind, this still occurs.
Version: 1.0.35
Now it seems to work but the toolbar is completely different from the one specified in config param:
https://pasteboard.co/Hd5IDJO.png
<jodit-editor id="#editor" [config]="{buttons: 'source,|,bold,strikethrough,underline,italic,|,|,ul,ol,|,paragraph,|,link,|,\n,|'}">
This same config result in this on Jodit playground (as expected):
Editor have a different config based on width available, so if you want to change toolbar buttons, you must override the differents buttons styles:
editorConfig = {
"buttons": 'source,|,bold,strikethrough,underline,italic,|,|,ul,ol,|,paragraph,|,link,|,\n,|'
"buttonsMD": 'source,|,bold,strikethrough,underline,italic,|,|,ul,ol,|,paragraph,|,link,|,\n,|'
"buttonsSM": 'source,|,bold,strikethrough,underline,italic,|,|,ul,ol,|,paragraph,|,link,|,\n,|'
"buttonsXS": 'source,|,bold,strikethrough,underline,italic,|,|,ul,ol,|,paragraph,|,link,|,\n,|'
};
Documentation: https://xdsoft.net/jodit/v.2/doc/Jodit.defaultOptions.html#buttons
This works!
Hi, i'm on Angular 5.2.0, tried plugin version 1.0.32 and latest 1.0.34 but "config" options are always ignored, editor will always display all the toolbar buttons.
tried this as per docs:
and
Nothing changes, always same editor with all toolbar options enabled
https://pasteboard.co/Hd5yGzw.png
Am i missing something?
Thanks!