diff --git a/docs/api/block.md b/docs/api/block.md index 01b72e490..a2018a7a8 100644 --- a/docs/api/block.md +++ b/docs/api/block.md @@ -5,7 +5,7 @@ ### Properties * `label` **[String][1]** Block label, eg. `My block` -* `content` **([String][1] | [Object][2])** The content of the block. Might be an HTML string or a [Component Defintion][3] +* `content` **([String][1] | [Object][2])** The content of the block. Might be an HTML string or a [Component Definition][3] * `media` **[String][1]?** HTML string for the media/icon of the block, eg. `?** Indicate an array of Property defintions. +* `properties` **[Array][3]<[Object][4]>?** Indicate an array of Property definitions. ### getId diff --git a/docs/guides/Replace-Rich-Text-Editor.md b/docs/guides/Replace-Rich-Text-Editor.md index be68f2fce..20609ff5f 100644 --- a/docs/guides/Replace-Rich-Text-Editor.md +++ b/docs/guides/Replace-Rich-Text-Editor.md @@ -90,7 +90,7 @@ editor.setCustomRte({ ### Content -Each third-party library could handle the state of the content differently and what is actually rendered as a DOM in the preview might not rapresent the final HTML output. So, by default, GrapesJS takes the `innerHTML` as the final output directly from the DOM element but is highly recommended to specify the method responsable to return the final state as HTML string (each third-party library might handle it differently). +Each third-party library could handle the state of the content differently and what is actually rendered as a DOM in the preview might not rapresent the final HTML output. So, by default, GrapesJS takes the `innerHTML` as the final output directly from the DOM element but is highly recommended to specify the method responsible to return the final state as HTML string (each third-party library might handle it differently). ```js editor.setCustomRte({ diff --git a/packages/core/src/data_sources/model/conditional_variables/operators/LogicalOperator.ts b/packages/core/src/data_sources/model/conditional_variables/operators/LogicalOperator.ts index 5c3aced38..75f979b45 100644 --- a/packages/core/src/data_sources/model/conditional_variables/operators/LogicalOperator.ts +++ b/packages/core/src/data_sources/model/conditional_variables/operators/LogicalOperator.ts @@ -12,7 +12,7 @@ export class LogicalOperator extends Operator { } evaluate(statements: boolean[]): boolean { - if (!statements.length) throw new Error('Expected one or more statments, got none'); + if (!statements.length) throw new Error('Expected one or more statements, got none'); switch (this.operator) { case LogicalOperation.and: diff --git a/packages/core/src/storage_manager/config/config.ts b/packages/core/src/storage_manager/config/config.ts index dbbb7a9a4..a8a1dc1e8 100644 --- a/packages/core/src/storage_manager/config/config.ts +++ b/packages/core/src/storage_manager/config/config.ts @@ -41,7 +41,7 @@ export interface StorageManagerConfig { /** * In case the `remote` storage is selected, and this options is enabled, the project * will be stored on the `local` storage in case the remote one fails. - * The local data are cleared on every sucessful remote save. When the remote storage + * The local data are cleared on every successful remote save. When the remote storage * fails (eg. network issue) and the editor is reloaded, a dialog with the possibility to * recovery previous data will be shown. * @default false diff --git a/packages/core/test/specs/dom_components/model/Component.ts b/packages/core/test/specs/dom_components/model/Component.ts index ad18fb641..6069c05af 100644 --- a/packages/core/test/specs/dom_components/model/Component.ts +++ b/packages/core/test/specs/dom_components/model/Component.ts @@ -748,7 +748,7 @@ describe('Components', () => { `; const added = dcomp.addComponent(block) as Component; const addComps = added.components(); - // Let's check if everthing is working as expected + // Let's check if everything is working as expected // 2 test components + 1 wrapper + 1 head + 1 docEl expect(Object.keys(dcomp.componentsById).length).toBe(5); expect(added.getId()).toBe(id);