diff --git a/docs/contributors/code/react-native/getting-started-react-native.md b/docs/contributors/code/react-native/getting-started-react-native.md index 53d5f7eee5a124..aef20fa965f685 100644 --- a/docs/contributors/code/react-native/getting-started-react-native.md +++ b/docs/contributors/code/react-native/getting-started-react-native.md @@ -73,7 +73,7 @@ To see a list of all of your available iOS devices, use `xcrun simctl list devic ### Customizing the Demo Editor -By default, the Demo editor renders most of the supported core blocks. This is helpful to showcase the editor's capabilities, but can be distracting when focusing on a specific block or feature. One can customize the editor's intial state by leveraging the `native.block_editor_props` hook in a `packages/react-native-editor/src/setup-local.js` file. +By default, the Demo editor renders most of the supported core blocks. This is helpful to showcase the editor's capabilities, but can be distracting when focusing on a specific block or feature. One can customize the editor's initial state by leveraging the `native.block_editor_props` hook in a `packages/react-native-editor/src/setup-local.js` file.
Example setup-local.js diff --git a/docs/explanations/architecture/entities.md b/docs/explanations/architecture/entities.md index 2a3af6288d27fa..ca6609ba1b9c91 100644 --- a/docs/explanations/architecture/entities.md +++ b/docs/explanations/architecture/entities.md @@ -40,7 +40,7 @@ wp.data.dispatch( 'core' ).saveEditedEntityRecord( 'postType', 'post', 1 ); Since the WordPress editors allow multiple entity records to be edited at the same time, the `core-data` package keeps track of all the entity records that have been fetched and edited in a common undo/redo stack. Each step in the undo/redo stack contains a list of "edits" that should be undone or redone at the same time when calling the `undo` or `redo` action. -And to be able to perform both undo and redo operations propertly, each modification in the list of edits contains the following information: +And to be able to perform both undo and redo operations properly, each modification in the list of edits contains the following information: - Entity kind and name: Each entity in core-data is identified by the pair _(kind, name)_. This corresponds to the identifier of the modified entity. - Entity Record ID: The ID of the modified record. diff --git a/docs/how-to-guides/block-tutorial/extending-the-query-loop-block.md b/docs/how-to-guides/block-tutorial/extending-the-query-loop-block.md index cc4d0b1ee0a0d7..9be4f3a993d203 100644 --- a/docs/how-to-guides/block-tutorial/extending-the-query-loop-block.md +++ b/docs/how-to-guides/block-tutorial/extending-the-query-loop-block.md @@ -202,7 +202,7 @@ import { InspectorControls } from '@wordpress/block-editor'; export const withBookQueryControls = ( BlockEdit ) => ( props ) => { // We only want to add these controls if it is our variation, - // so here we can implement a custom logic to check for that, similiar + // so here we can implement a custom logic to check for that, similar // to the `isActive` function described above. // The following assumes that you wrote a custom `isMyBooksVariation` // function to handle that. diff --git a/docs/how-to-guides/enqueueing-assets-in-the-editor.md b/docs/how-to-guides/enqueueing-assets-in-the-editor.md index df869328e84b90..bfce9334320232 100644 --- a/docs/how-to-guides/enqueueing-assets-in-the-editor.md +++ b/docs/how-to-guides/enqueueing-assets-in-the-editor.md @@ -13,7 +13,7 @@ Do you want to add styling or JavaScript to the user-generated content (blocks) There are different hooks to use depending on the answers to these questions, and if you are building a block or a theme, there are additional approaches to consider. Refer to the designated sections below. -## Scenarios for enqueing assets +## Scenarios for enqueuing assets ### Editor scripts and styles Whenever you need to enqueue assets for the Editor itself (i.e. not the user-generated content), you should use the [`enqueue_block_editor_assets`](https://developer.wordpress.org/reference/hooks/enqueue_block_editor_assets/) hook coupled with the standard [`wp_enqueue_script`](https://developer.wordpress.org/reference/functions/wp_enqueue_script/) and [`wp_enqueue_style`](https://developer.wordpress.org/reference/functions/wp_enqueue_style/) functions. diff --git a/docs/how-to-guides/platform/custom-block-editor.md b/docs/how-to-guides/platform/custom-block-editor.md index 88dad59960d029..94f942fd5e05f6 100644 --- a/docs/how-to-guides/platform/custom-block-editor.md +++ b/docs/how-to-guides/platform/custom-block-editor.md @@ -70,7 +70,7 @@ Here is a brief summary of what's going on: - `src/` (directory) - This is where the JavaScript and CSS source files will live. These files are _not_ directly enqueued by the plugin. - `webpack.config.js` - A custom Webpack config extending the defaults provided by the [`@wordpress/scripts`](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/) npm package to allow for custom CSS styles (via Sass). -The only item not shown above is the `build/` directory, which is where the _compiled_ JS and CSS files are outputted by `@wordpress/scripts`. These files are enqueued by the plugin seperately. +The only item not shown above is the `build/` directory, which is where the _compiled_ JS and CSS files are outputted by `@wordpress/scripts`. These files are enqueued by the plugin separately.
Throughout this guide, filename references will be placed in a comment at the top of each code snippet so you can follow along. @@ -168,7 +168,7 @@ wp_enqueue_script( $script_handle, $script_url, $script_asset['dependencies'], $ To save time and space, the `$script_` variables assignment has been omitted. You can [review these here](https://github.com/getdave/standalone-block-editor/blob/974a59dcbc539a0595e8fa34670e75ec541853ab/init.php#L19). -Note the third arguement for script dependencies, `$script_asset['dependencies']`. These dependencies are +Note the third argument for script dependencies, `$script_asset['dependencies']`. These dependencies are dynamically generated using [@wordpress/dependency-extraction-webpack-plugin](https://developer.wordpress.org/block-editor/packages/packages-dependency-extraction-webpack-plugin/) which will [ensure that](https://developer.wordpress.org/block-editor/packages/packages-scripts/#default-webpack-config) WordPress provided scripts are not included in the built bundle. diff --git a/docs/reference-guides/block-api/block-templates.md b/docs/reference-guides/block-api/block-templates.md index b71625082a4d61..494a99bf73af73 100644 --- a/docs/reference-guides/block-api/block-templates.md +++ b/docs/reference-guides/block-api/block-templates.md @@ -115,7 +115,7 @@ add_action( 'init', 'myplugin_register_template' ); _Options:_ -- `contentOnly` — prevents all operations. Additionally, the block types that don't have content are hidden from the list view and can't gain focus within the block list. Unlike the other lock types, this is not overrideable by children. +- `contentOnly` — prevents all operations. Additionally, the block types that don't have content are hidden from the list view and can't gain focus within the block list. Unlike the other lock types, this is not overridable by children. - `all` — prevents all operations. It is not possible to insert new blocks, move existing blocks, or delete blocks. - `insert` — prevents inserting or removing blocks, but allows moving existing blocks. diff --git a/docs/reference-guides/block-api/block-transforms.md b/docs/reference-guides/block-api/block-transforms.md index 4a6101df3394c4..a91444981b76fb 100644 --- a/docs/reference-guides/block-api/block-transforms.md +++ b/docs/reference-guides/block-api/block-transforms.md @@ -101,7 +101,7 @@ A transformation of type `enter` is an object that takes the following parameter **Example: from --- to Separator block** -To create a separator block when the user types the hypen three times and then hits the ENTER key we can use the following code: +To create a separator block when the user types the hyphen three times and then hits the ENTER key we can use the following code: ```js transforms = { @@ -162,7 +162,7 @@ This type of transformations support the _from_ direction, allowing blocks to be A transformation of type `prefix` is an object that takes the following parameters: - **type** _(string)_: the value `prefix`. -- **prefix** _(string)_: the character or sequence of characters that match this transfrom. +- **prefix** _(string)_: the character or sequence of characters that match this transform. - **transform** _(function)_: a callback that receives the content introduced. It should return a block object or an array of block objects. - **priority** _(number, optional)_: controls the priority with which a transform is applied, where a lower value will take precedence over higher values. This behaves much like a [WordPress hook](https://codex.wordpress.org/Plugin_API#Hook_to_WordPress). Like hooks, the default priority is `10` when not otherwise set. @@ -260,7 +260,7 @@ schema = ({ phrasingContentSchema }) => { When we successfully match this content every HTML attribute will be stripped away except for `data-post-id` and if we have other arrangements of HTML inside of a given `div` then it won't match our transformer. Likewise we'd fail to match if we found an `

` in there instead of an `

`. -Schemas are most-important when wanting to match HTML snippets containing non-phrasing content, such as `
` with a ``. Without declaring the custom schema the editor will skip over these other contructions before attempting to run them through any block transforms. +Schemas are most-important when wanting to match HTML snippets containing non-phrasing content, such as `
` with a ``. Without declaring the custom schema the editor will skip over these other constructions before attempting to run them through any block transforms. ### Shortcode diff --git a/docs/reference-guides/filters/editor-filters.md b/docs/reference-guides/filters/editor-filters.md index c65612f2083b97..59f6d7ef8213f3 100644 --- a/docs/reference-guides/filters/editor-filters.md +++ b/docs/reference-guides/filters/editor-filters.md @@ -76,7 +76,7 @@ This is a PHP filter which is applied before sending settings to the WordPress b You may find details about this filter [on its WordPress Code Reference page](https://developer.wordpress.org/reference/hooks/block_editor_settings_all/). -The filter will send any setting to the initialized Editor, which means any editor setting that is used to configure the editor at initialiation can be filtered by a PHP WordPress plugin before being sent. +The filter will send any setting to the initialized Editor, which means any editor setting that is used to configure the editor at initialization can be filtered by a PHP WordPress plugin before being sent. _Example:_