Render custom editor for mailpoet_email post types

[MAILPOET-6090]
This commit is contained in:
Rostislav Wolny
2024-11-12 15:09:24 +01:00
committed by Oluwaseun Olorunsola
parent f170db9294
commit c71949e326
4 changed files with 159 additions and 1 deletions

View File

@@ -10,7 +10,9 @@ import {
export function getInitialState(): State {
const searchParams = new URLSearchParams( window.location.search );
const postId = parseInt( searchParams.get( 'postId' ), 10 );
const postId = parseInt( searchParams.get( 'post' ), 10 )
? parseInt( searchParams.get( 'post' ), 10 )
: parseInt( searchParams.get( 'postId' ), 10 );
return {
inserterSidebar: {
isOpened: false,