Skip to content

Commit

Permalink
Rewrite validation error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed May 13, 2019
1 parent a3e65fd commit 54149d1
Show file tree
Hide file tree
Showing 30 changed files with 1,755 additions and 1,551 deletions.
543 changes: 0 additions & 543 deletions assets/src/block-editor/amp-block-validation.js

This file was deleted.

953 changes: 41 additions & 912 deletions assets/src/block-editor/amp-editor-blocks.js

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions assets/src/block-editor/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export const TEXT_BLOCKS = [
'core/paragraph',
'core/heading',
'core/code',
'core/quote',
'core/subhead',
];

export const MEDIA_BLOCKS = [
'core/image',
'core/video',
];

export const DEFAULT_WIDTH = 608; // Max-width in the editor.
export const DEFAULT_HEIGHT = 400;
Loading

0 comments on commit 54149d1

Please sign in to comment.