froala / wysiwyg-rails

Ruby gem for Froala jQuery WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
MIT License
465 stars 102 forks source link

Method paragraphFormat not working #67

Closed antmoreau closed 6 years ago

antmoreau commented 6 years ago

Hi as I am trying to create custom buttons, I have followed this tutorial: https://wysiwyg-editor.froala.help/hc/en-us/articles/115001232345-How-can-I-add-buttons-for-H1-and-H2-in-the-editor-toolbar-

But I get this error: Cannot read property 'apply' of undefined at this point this.paragraphFormat.apply(cmd)

Hope I could get any help on this. Thanks