Files
piratepoet/packages/js/email-editor/src/store/constants.ts
Oluwaseun Olorunsola 1cb5eda659 Migrate variable from email editor core to MailPoet integration.
The information is already available within the MailPoet integration scope, moving the variable declaration closer.

MAILPOET-6430
2025-01-30 13:12:33 +01:00

15 lines
520 B
TypeScript

export const storeName = 'email-editor/editor';
export const mainSidebarId = 'email-editor/editor/main';
export const mainSidebarDocumentTab = 'document';
export const mainSidebarBlockTab = 'block';
export const stylesSidebarId = 'email-editor/editor/styles';
// these values are set once on a page load, so it's fine to keep them here.
export const editorCurrentPostType =
window.MailPoetEmailEditor.current_post_type;
export const editorCurrentPostId = parseInt(
window.MailPoetEmailEditor.current_post_id,
10
);