Skip to content

Commit

Permalink
Gutenberg: fix list block indent/outdent functionality (#27877)
Browse files Browse the repository at this point in the history
We were missing the TinyMCE lists plugin which core tries to import from
a separate js file that's available in the vendor directory.
  • Loading branch information
vindl authored Oct 16, 2018
1 parent 2c69291 commit 0f5712e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/gutenberg/editor/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import { getHttpData } from 'state/data-layer/http-data';
import { getSiteSlug } from 'state/sites/selectors';
import { WithAPIMiddleware } from './api-middleware/utils';
import { translate } from 'i18n-calypso';

import './hooks';
import 'tinymce/plugins/lists/plugin.js'; // Make list indent/outdent work
import './hooks'; // Needed for integrating Calypso's media library (and other hooks)

class GutenbergEditor extends Component {
componentDidMount() {
Expand Down
6 changes: 6 additions & 0 deletions client/gutenberg/editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ $gutenberg-theme-toggle: #11a0d2;
z-index: 100000; /* Above WP toolbar. */
}
}

.editor-block-list__block {
ul ul, ol ol {
list-style-type: circle;
}
}
}

//needed for oembed iframes to appear
Expand Down

0 comments on commit 0f5712e

Please sign in to comment.