Rename custom email editor to email editor
[MAILPOET-5637]
This commit is contained in:
committed by
Aschepikov
parent
e9a5658be5
commit
3a88989a84
@@ -16,9 +16,9 @@ import {
|
||||
} from '@wordpress/block-editor';
|
||||
import classnames from 'classnames';
|
||||
import { useSelect } from '@wordpress/data';
|
||||
import { storeName } from 'email-editor-custom/engine/store';
|
||||
|
||||
import { useEntityBlockEditor } from '@wordpress/core-data';
|
||||
|
||||
import { storeName } from '../../store';
|
||||
import { Sidebar } from '../sidebar/sidebar';
|
||||
|
||||
import { ListviewSidebar } from '../listview-sidebar/listview-sidebar';
|
@@ -1,4 +1,4 @@
|
||||
import { initialize } from 'email-editor-custom/engine/editor';
|
||||
import { initialize } from 'email-editor/engine/editor';
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
initialize('mailpoet-email-editor');
|
@@ -24,17 +24,17 @@ class EmailEditor {
|
||||
return;
|
||||
}
|
||||
|
||||
$assetsParams = require_once Env::$assetsPath . '/dist/js/email-editor-custom/email_editor.asset.php';
|
||||
$assetsParams = require_once Env::$assetsPath . '/dist/js/email-editor/email_editor.asset.php';
|
||||
$this->wp->wpEnqueueScript(
|
||||
'mailpoet_email_editor',
|
||||
Env::$assetsUrl . '/dist/js/email-editor-custom/email_editor.js',
|
||||
Env::$assetsUrl . '/dist/js/email-editor/email_editor.js',
|
||||
$assetsParams['dependencies'],
|
||||
$assetsParams['version'],
|
||||
true
|
||||
);
|
||||
$this->wp->wpEnqueueStyle(
|
||||
'mailpoet_email_editor',
|
||||
Env::$assetsUrl . '/dist/js/email-editor-custom/email_editor.css',
|
||||
Env::$assetsUrl . '/dist/js/email-editor/email_editor.css',
|
||||
[],
|
||||
$assetsParams['version']
|
||||
);
|
||||
|
@@ -440,13 +440,13 @@ const marketingOptinBlock = Object.assign({}, wpScriptConfig, {
|
||||
});
|
||||
|
||||
const emailEditorCustom = Object.assign({}, wpScriptConfig, {
|
||||
name: 'email_editor_custom',
|
||||
name: 'email_editor',
|
||||
entry: {
|
||||
email_editor: 'email-editor-custom/index.ts',
|
||||
email_editor: 'email-editor/index.ts',
|
||||
},
|
||||
output: {
|
||||
filename: '[name].js',
|
||||
path: path.join(__dirname, 'assets/dist/js/email-editor-custom'),
|
||||
path: path.join(__dirname, 'assets/dist/js/email-editor'),
|
||||
},
|
||||
resolve: {
|
||||
...wpScriptConfig.resolve,
|
||||
@@ -469,7 +469,7 @@ module.exports = configs.map((conf) => {
|
||||
const config = Object.assign({}, conf);
|
||||
if (
|
||||
config.name === 'marketing_optin_block' ||
|
||||
config.name === 'email_editor_custom'
|
||||
config.name === 'email_editor'
|
||||
) {
|
||||
return config;
|
||||
}
|
||||
|
Reference in New Issue
Block a user