Load user styles in the email editor properly
[MAILPOET-6335]
This commit is contained in:
committed by
Aschepikov
parent
0f7009438c
commit
fdc0d15b63
1
packages/js/email-editor/src/global.d.ts
vendored
1
packages/js/email-editor/src/global.d.ts
vendored
@ -6,6 +6,7 @@ interface Window {
|
||||
cdn_url: string;
|
||||
is_premium_plugin_active: boolean;
|
||||
current_wp_user_email: string;
|
||||
user_theme_post_id: number;
|
||||
urls: {
|
||||
listings: string;
|
||||
};
|
||||
|
@ -25,7 +25,7 @@ export function getInitialState(): State {
|
||||
editorSettings: getEditorSettings(),
|
||||
theme: getEditorTheme(),
|
||||
styles: {
|
||||
globalStylesPostId: 153, // Todo - fetch from DB
|
||||
globalStylesPostId: window.MailPoetEmailEditor.user_theme_post_id,
|
||||
},
|
||||
autosaveInterval: 60,
|
||||
cdnUrl: getCdnUrl(),
|
||||
|
Reference in New Issue
Block a user