Skip to content

Commit

Permalink
Remove allowedFormats and improve styling of inline code for CTA block.
Browse files Browse the repository at this point in the history
  • Loading branch information
miina committed Jul 31, 2019
1 parent 753c56b commit c6be107
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions assets/src/stories-editor/blocks/amp-story-cta/edit.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@
max-width: 100%;
}

.wp-block-amp-amp-story-cta .block-editor-rich-text__editable code {
background: inherit;
color: inherit;
}

.wp-block-amp-amp-story-cta .block-editor-rich-text__editable[data-is-placeholder-visible="true"] {
height: auto;
}
Expand Down
1 change: 0 additions & 1 deletion assets/src/stories-editor/blocks/amp-story-cta/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ class CallToActionEdit extends Component {
placeholder={ __( 'Add text…', 'amp' ) }
value={ text }
onChange={ ( value ) => setAttributes( { text: value } ) }
allowedFormats={ [ 'core/bold', 'core/italic', 'core/strikethrough' ] }
className={ classnames(
'amp-block-story-cta__link', {
'has-background': backgroundColor.color,
Expand Down

0 comments on commit c6be107

Please sign in to comment.