Skip to content

Commit

Permalink
Post Editor: Always force iframe in pattern editor
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Oct 5, 2024
1 parent 9d67345 commit c82a629
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/editor/src/components/visual-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ function VisualEditor( {
// Dsiable resizing in zoomed-out mode.
! isZoomedOut;
const shouldIframe =
! disableIframe || [ 'Tablet', 'Mobile' ].includes( deviceType );
! disableIframe ||
[ 'Tablet', 'Mobile' ].includes( deviceType ) ||
PATTERN_POST_TYPE === postType;

const iframeStyles = useMemo( () => {
return [
Expand Down

0 comments on commit c82a629

Please sign in to comment.