Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Extract EditorConfiguration * Add isTitleHidden option * Remove isEditorLoaded * task: Expand hidden title robustness (#97) * style: Format code * feat: Apply opinionated default content styles In the WordPress admin context, the block list receives "post content" attributes that dictate the layout and alignment styles applied to the blocks within the list. Currently, we cannot retrieve the post content attributes via the REST API, as it does not include the current post context. Instead, we apply the "constrained" layout to improve the mobile editing experience. However, this approach may ultimately introduce subtle styling bugs--namely, classic vs block themes and editing posts/pages that use non-traditional template layouts (e.g., full-width content). * fix: Inject editor styles Ensure various editor styles are injected. These styles are determined by editor and theme settings. Unfortunately, we do not have all the necessary context in the REST API to ensure all the styles are present. Therefore, these changes also include some manual style additions that are notably absent. This manual approach is brittle. Ideally, the web editor relies upon the same REST API endpoints as the mobile app rather than relying upon server rendering context. This would push both platforms to ensure all of the necessary settings are exposed. * refactor: Pass renamed hideTitle setting as prop Renamed for consistency with other settings. Passed as a prop to avoid redundant bridge communication and unnecessary re-renders. Added option to the text editor. * docs: Document TextEditor * refactor: Remove unused settings fetch * docs: Document VisualEditor * fix: Apply missing post title alignment styles Apply similar constraints as found on the post content. * fix: Address remote editor errors Reinstate the layout component to simplify remote editor support. * fix: Repair root level alignment conditional The `themeStyles` setting is not utilized in the web editor and may be unnecessary in this context. * feat: Ensure reasonable defaults when theme styles are absent This might be used when classic themes are active or in development environments lack site/theme context. * refactor: Hoist editor ready logic Align with the web editor. Begin a path towards avoiding portions of the editor UI appearing at different times. * Remove unused import * Build * fix: Pad editor when theme styles are disabled Avoid content flush against the device edge. * task: Capture build output --------- Co-authored-by: David Calhoun <[email protected]>
- Loading branch information