froala / angular-froala-wysiwyg

Angular 4, 5, 6, 7, 8 and 9 plugin for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
735 stars 202 forks source link

Adding toolbarButtons on Config not working properly #478

Open franzbuenaventura opened 3 years ago

franzbuenaventura commented 3 years ago

Hi Guys,

I am trying to limit my text editor not to accept files and images so I add a toolbarButtons on my text editor

toolbarButtons: {
                                    moreText: {
                                      buttons: ['bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', 'textColor', 'backgroundColor', 'inlineClass', 'inlineStyle', 'clearFormatting'],
                                      align: 'left',
                                      buttonsVisible: 3
                                    },
                                    moreParagraph: {
                                      buttons: ['alignLeft', 'alignCenter', 'formatOLSimple', 'alignRight', 'alignJustify', 'formatOL', 'formatUL', 'paragraphFormat', 'paragraphStyle', 'lineHeight', 'outdent', 'indent', 'quote'],
                                      align: 'left',
                                      buttonsVisible: 0
                                    },
                                    moreRich: {
                                      buttons: ['insertLink', 'insertTable',  'emoticons', 'fontAwesome', 'specialCharacters', 'embedly', 'insertHR'],
                                      align: 'left',
                                      buttonsVisible: 0
                                    },
                                    moreMisc: {
                                      buttons: ['undo', 'redo', 'fullscreen', 'print', 'getPDF', 'spellChecker', 'selectAll', 'html', 'help'],
                                      align: 'right',
                                      buttonsVisible: 2
                                    }
                                  }

When I add this I get an error popup undefined whenever I tried clicking moreText or other buttons.