Skip to content

Commit

Permalink
Merge branch 'master' into add/2793-user-autocompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
tiny-james committed Oct 24, 2017
2 parents 8791dd3 + 653e555 commit 79712b8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions blocks/editable/tinymce.js
Expand Up @@ -46,6 +46,10 @@ export default class TinyMCE extends Component {
return;
}

// This hack prevents TinyMCE from trying to remove the container node
// while cleaning for destroy, since removal is handled by React. It
// does so by substituting the container to be removed.
this.editor.container = document.createDocumentFragment();
this.editor.destroy();
delete this.editor;
}
Expand Down
5 changes: 2 additions & 3 deletions blocks/inspector-controls/textarea-control/index.js
Expand Up @@ -21,10 +21,9 @@ function TextareaControl( { label, value, help, instanceId, onChange, rows = 4,
rows={ rows }
onChange={ onChangeValue }
aria-describedby={ !! help ? id + '__help' : undefined }
value={ value }
{ ...props }
>
{ value }
</textarea>
/>
</BaseControl>
);
}
Expand Down
1 change: 0 additions & 1 deletion blocks/library/paragraph/index.js
Expand Up @@ -135,7 +135,6 @@ registerBlockType( 'core/paragraph', {
<ColorPalette
value={ backgroundColor }
onChange={ ( colorValue ) => setAttributes( { backgroundColor: colorValue } ) }
withTransparentOption
/>
</PanelBody>
<PanelBody title={ __( 'Text Color' ) }>
Expand Down
6 changes: 5 additions & 1 deletion editor/header/style.scss
Expand Up @@ -46,7 +46,11 @@

/* Sidebar manually collapsed */
.folded .editor-header {
left: $admin-sidebar-width-collapsed;
left: 0;

@include break-medium() {
left: $admin-sidebar-width-collapsed;
}
}

/* Mobile menu opened */
Expand Down

0 comments on commit 79712b8

Please sign in to comment.