diff --git a/assets/js/src/form_editor/components/editor.jsx b/assets/js/src/form_editor/components/editor.jsx index 374466f176..cb25439f40 100644 --- a/assets/js/src/form_editor/components/editor.jsx +++ b/assets/js/src/form_editor/components/editor.jsx @@ -6,6 +6,13 @@ import Sidebar from './sidebar.jsx'; import FormTitle from './form_title.jsx'; import Notices from './notices.jsx'; +/** + * This component renders the form editor app. + * Class names and organization of elements are done based on Gutenberg's edit-post package. + * (https://github.com/WordPress/gutenberg/tree/master/packages/edit-post). + * The goal is to render the same DOM for layout as Gutenberg post/page editor + * so that we can reuse it's CSS. + */ export default () => { const sidebarOpened = useSelect( (select) => select('mailpoet-form-editor').getSidebarOpened(), diff --git a/assets/js/src/form_editor/store/store.jsx b/assets/js/src/form_editor/store/store.jsx index 482223cba0..17c553bdc6 100644 --- a/assets/js/src/form_editor/store/store.jsx +++ b/assets/js/src/form_editor/store/store.jsx @@ -1,3 +1,7 @@ +/** + * The store is implemented using @wordpress/data module + * @see https://developer.wordpress.org/block-editor/packages/packages-data/ + */ import { registerStore } from '@wordpress/data'; import * as actions from './actions.jsx'; import createReducer from './reducer.jsx';