From 8a54a6393365ab5a457827fdb91ef27c84ba00fa Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Tue, 1 Mar 2022 12:26:45 -0500 Subject: [PATCH] Creator: Use Twenty Twenty-One styles in editor (#417) * Add Twenty Twenty-One styles to the editor to match frontend display * Add some extra space in the post content --- .../pattern-creator/src/components/block-editor/index.js | 6 ++++++ .../pattern-creator/src/components/editor/style.scss | 1 + 2 files changed, 7 insertions(+) diff --git a/public_html/wp-content/plugins/pattern-creator/src/components/block-editor/index.js b/public_html/wp-content/plugins/pattern-creator/src/components/block-editor/index.js index fb654850f..7dafcbf20 100644 --- a/public_html/wp-content/plugins/pattern-creator/src/components/block-editor/index.js +++ b/public_html/wp-content/plugins/pattern-creator/src/components/block-editor/index.js @@ -48,6 +48,12 @@ export default function BlockEditor( { setIsInserterOpen } ) { const ref = useMouseMoveTypingReset(); const contentRef = useRef(); const mergedRefs = useMergeRefs( [ contentRef, useTypingObserver() ] ); + if ( -1 === settings.__unstableResolvedAssets.styles.indexOf( 'theme-styles' ) ) { + settings.__unstableResolvedAssets.styles += + '\n'; + settings.__unstableResolvedAssets.styles += + '\n'; + } return (