Skip to content

Commit

Permalink
Use edit-site
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Feb 12, 2020
1 parent bfc71f0 commit c5b9261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 186 deletions.
159 changes: 0 additions & 159 deletions client/landing/custom-editor/editor.js

This file was deleted.

29 changes: 2 additions & 27 deletions client/landing/custom-editor/index.tsx
Original file line number Diff line number Diff line change
@@ -1,38 +1,13 @@
/**
* External dependencies
*/
import '@automattic/calypso-polyfills';
import React from 'react';
import ReactDom from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import config from '../../config';

/**
* Internal dependencies
*/
import CustomEditor from './editor';
// import { setupWpDataDebug } from './devtools'; // Currently only available in Gutenboarding
import accessibleFocus from 'lib/accessible-focus';
/**
* Style dependencies
*/
import 'assets/stylesheets/gutenboarding.scss';
import 'components/environment-badge/style.scss';
import { initialize } from '@wordpress/edit-site';

window.AppBoot = () => {
if ( ! config.isEnabled( 'custom-editor' ) ) {
window.location.href = '/';
} else {
// setupWpDataDebug();

// Add accessible-focus listener.
accessibleFocus();

ReactDom.render(
<BrowserRouter basename="custom-editor">
<CustomEditor />
</BrowserRouter>,
document.getElementById( 'wpcom' )
);
initialize( 'wpcom', {} );
}
};

0 comments on commit c5b9261

Please sign in to comment.