diff --git a/docs/reference-guides/richtext.md b/docs/reference-guides/richtext.md index c34e36ff6b7473..d4cd616303c23e 100644 --- a/docs/reference-guides/richtext.md +++ b/docs/reference-guides/richtext.md @@ -110,13 +110,6 @@ wp.blocks.registerBlockType( /* ... */, { While using the RichText component a number of common issues tend to appear. -### Placeholder Content Separates from the Input - -In some cases the placeholder content on RichText can appear separate from the input where you would write your content. This is likely due to one of two reasons: - -1. You can't have an element with the CSS `display` property set to `inline`. You will need to set it to `inline-block` or any other value. -2. The `position` CSS property value for the element must be set to `relative` or `absolute` within the admin. If the styles within style.css or editor.css modify the `position` property value for this element, you may see issues with how it displays. - ### HTML Formatting Tags Display in the Content If the HTML tags from text formatting such as `` or `` are being escaped and displayed on the frontend of the site, this is likely due to an issue in your save function. Make sure your code looks something like `` (ESNext) within your save function instead of simply outputting the value with `

{ heading }

`. diff --git a/packages/block-editor/src/components/editable-text/README.md b/packages/block-editor/src/components/editable-text/README.md index 148ff2280a65ec..601b996e50be2a 100644 --- a/packages/block-editor/src/components/editable-text/README.md +++ b/packages/block-editor/src/components/editable-text/README.md @@ -14,7 +14,7 @@ _Required._ Called when the value changes. ### `tagName: String` -_Default: `div`._ The [tag name](https://www.w3.org/TR/html51/syntax.html#tag-name) of the editable element. Elements that display inline are not supported. Set to `inline-block` to use tag names that have `inline` as the default. +_Default: `div`._ The [tag name](https://www.w3.org/TR/html51/syntax.html#tag-name) of the editable element. ### `disableLineBreaks: Boolean` diff --git a/packages/block-editor/src/components/rich-text/README.md b/packages/block-editor/src/components/rich-text/README.md index 9b4e55220d8426..84c053bc5f5203 100644 --- a/packages/block-editor/src/components/rich-text/README.md +++ b/packages/block-editor/src/components/rich-text/README.md @@ -14,7 +14,7 @@ _Required._ Called when the value changes. ### `tagName: String` -_Default: `div`._ The [tag name](https://www.w3.org/TR/html51/syntax.html#tag-name) of the editable element. Elements that display inline are not supported. Set to `inline-block` to use tag names that have `inline` as the default. +_Default: `div`._ The [tag name](https://www.w3.org/TR/html51/syntax.html#tag-name) of the editable element. ### `placeholder: String` diff --git a/packages/block-library/src/file/edit.js b/packages/block-library/src/file/edit.js index ad76a1c86f55c8..b23502186e687f 100644 --- a/packages/block-library/src/file/edit.js +++ b/packages/block-library/src/file/edit.js @@ -274,8 +274,7 @@ function FileEdit( { ) }
{ - if ( process.env.NODE_ENV === 'development' ) { - const target = ref.current; - const { defaultView } = target.ownerDocument; - const computedStyle = defaultView.getComputedStyle( target ); - - if ( computedStyle.display === 'inline' ) { - // eslint-disable-next-line no-console - console.error( message ); - } - } - }, [] ); - return ref; -}