From d2dbc92fa3ff0e3abe339c16e4b8893fd73efe98 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Mon, 9 Sep 2024 15:45:42 +0400 Subject: [PATCH] Block Editor: Remove reset styles RTL from the iframe --- .../src/components/iframe/get-compatibility-styles.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/iframe/get-compatibility-styles.js b/packages/block-editor/src/components/iframe/get-compatibility-styles.js index ab80e0e8eb43ea..0eae82b11e01f8 100644 --- a/packages/block-editor/src/components/iframe/get-compatibility-styles.js +++ b/packages/block-editor/src/components/iframe/get-compatibility-styles.js @@ -40,7 +40,12 @@ export function getCompatibilityStyles() { // Don't try to add the reset styles, which were removed as a dependency // from `edit-blocks` for the iframe since we don't need to reset admin // styles. - if ( ownerNode.id === 'wp-reset-editor-styles-css' ) { + if ( + [ + 'wp-reset-editor-styles-css', + 'wp-reset-editor-styles-rtl-css', + ].includes( ownerNode.id ) + ) { return accumulator; }