diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 000000000..8fa789baa --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# Shows a funding button via Open Collective + +open_collective: grapesjs diff --git a/src/dom_components/model/Component.js b/src/dom_components/model/Component.js index 18fb7c149..90f556d2d 100644 --- a/src/dom_components/model/Component.js +++ b/src/dom_components/model/Component.js @@ -757,12 +757,12 @@ const Component = Backbone.Model.extend(Styleable).extend( * @param {Options} opts Options for the add * @return {Array} Array of added traits * @example - * component.addTrat('title', { at: 1 }); // Add title trait (`at` option is the position index) - * component.addTrat({ + * component.addTrait('title', { at: 1 }); // Add title trait (`at` option is the position index) + * component.addTrait({ * type: 'checkbox', * name: 'disabled', * }); - * component.addTrat(['title', {...}, ...]); + * component.addTrait(['title', {...}, ...]); */ addTrait(trait, opts = {}) { const { em } = this;