Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
6a8da2d
Update plugin to version 4.5.0. (#12078)
mtias Nov 20, 2018
a1a3508
chore(release): publish
youknowriad Nov 20, 2018
6a8ee53
Update published packages changelogs (#12137)
youknowriad Nov 20, 2018
eccb423
Add react-native module property to html-entities package.json (#12131)
Tug Nov 20, 2018
114c443
Fix undefined index warnings in Latest Comments & Latest Posts (#12149)
noisysocks Nov 21, 2018
ec1a4cb
Docs: Fix dead links in CONTRIBUTING.md (#12144)
coderkevin Nov 21, 2018
278b322
Revert "Honor the Disable Visual Editor setting (#12000)" (#12151)
noisysocks Nov 21, 2018
e05eb6d
Avoid showing draft revert message on autosaves (#12155)
youknowriad Nov 21, 2018
fd1b074
Raw Handling: fix consecutive lists with one item (#12156)
ellatrix Nov 21, 2018
e651069
RichText: List: Sync DOM after editor command (#12089)
ellatrix Nov 21, 2018
01be7ac
Fix RichText rerendering when it shouldn't (#12161)
atimmer Nov 21, 2018
f16642d
Fix keycodes package missing i18n dependency (#12164)
gziolo Nov 21, 2018
66d901e
Bump plugin version to 4.5.1 (#12158)
youknowriad Nov 21, 2018
301b902
chore(release): publish
gziolo Nov 21, 2018
51c3137
Fix issue with dragondrop in columns (#12159)
jasmussen Nov 21, 2018
4ddb5aa
Fix: remove formats from document outline headings. (#12130)
jorgefilipecosta Nov 21, 2018
0000e34
Remove .md only commit check in travis config (#12069)
earnjam Nov 21, 2018
5d275d1
Add e2e tests for the format API (#11948)
raquelmsmith Nov 21, 2018
17deea5
Improve scoping of nested paragraph right-padding rule (#12106)
jasmussen Nov 21, 2018
8bae925
RichText: remove onSplit from docs (#12174)
ellatrix Nov 21, 2018
1831687
Fix TinyMCE list plugin registration (#12170)
ellatrix Nov 21, 2018
53e4c40
Fixing IE11 flexbox alignment when min-width is set (#9196)
webmandesign Nov 21, 2018
4a44b55
Tooltips: Consistency and contrast: Issue #11180 (#11307)
timwright12 Nov 21, 2018
c9fad3b
Fix: Disable HTML edit from Media & Text block (#12191)
jorgefilipecosta Nov 21, 2018
36acf7d
[RNMobile] Wire onReplace on Para block (#12125)
daniloercoli Nov 21, 2018
43bb1ed
Fix cover block placeholder background color (#12187)
desrosj Nov 21, 2018
89f8897
Fix: Unregistering a block type causes blocks that convert to it to b…
jorgefilipecosta Nov 21, 2018
b7bfcd1
Fix exception when editing non-public CPTs (#12201)
noisysocks Nov 22, 2018
cb0b899
chore(release): publish
noisysocks Nov 22, 2018
5653f10
Make the image Link URL field readonly. (#12190)
afercia Nov 22, 2018
93262fa
Split the comment (#12193)
Nov 22, 2018
81212d2
Adding in contributor . (#10020)
sharazghouri Nov 22, 2018
f090e84
Docs: Update section on transforming from shortcodes (#12213)
gziolo Nov 22, 2018
abf1b56
Remove the textdomain from block library (#12215)
notnownikki Nov 22, 2018
0298cac
Fix getSelectedBlockClientId selector (#12214)
nosolosw Nov 22, 2018
668cf10
Added missing JSDocs in e2e test utils. (#12071)
nicolad Nov 22, 2018
780c980
Merge two similar strings. (#11708)
dimadin Nov 22, 2018
4c35fa4
Allow the user to Convert unembeddable URLs to links and try embeddin…
notnownikki Nov 22, 2018
9cc03c0
TinyMCE: fix IE11 lost focus after init (#12206)
ellatrix Nov 22, 2018
6e8e1bc
Simplify sidebar tabs aria-labels. (#11618)
afercia Nov 22, 2018
509fc16
Link Format: Label with selected text, not full text (#12154)
ellatrix Nov 22, 2018
017f31b
Rnmobile/native toolbar component ui (#11827)
marecar3 Nov 22, 2018
0823f24
Fix: Classic Block: Gallery shortcode does not display images in a gr…
jorgefilipecosta Nov 23, 2018
70b378b
Improve block preview. (#12212)
jasmussen Nov 23, 2018
1f57485
Improve button block styles and wrap. (#12205)
jasmussen Nov 23, 2018
93f2269
Fix: Cover Block: Move some editor specific styles from style.scss to…
jorgefilipecosta Nov 23, 2018
f4fc47e
Fix: Pasting a tag that is part of a transform but non matched ignore…
jorgefilipecosta Nov 23, 2018
bd897f6
Add IE check for IE fix (#12234)
ellatrix Nov 23, 2018
b5a709f
Travis CI: Remove `sudo: required` (#12092)
ntwb Nov 25, 2018
b0c31f7
Add undo redo (#12231)
Tug Nov 26, 2018
4a9de65
Update published packages changelogs (#12247)
gziolo Nov 26, 2018
1ee2013
Add check for css file before trying to read (#12291)
mkaz Nov 26, 2018
6f8b4c8
Use state instead to refresh component onContentSizeChange (#12304)
Tug Nov 26, 2018
97d1171
Fix wide image jumping. (#12305)
jasmussen Nov 26, 2018
80108fb
Fix the URL after documentation reorganisation. See https://meta.trac…
dd32 Nov 26, 2018
e9ca75f
[RNMobile] Expose `onFocus` and wire it for correct block-toolbar man…
daniloercoli Nov 26, 2018
6e5dc2a
Change @package to WordPress (#12319)
mkaz Nov 26, 2018
c33e917
Improve the top bar tools interaction and consistency (#12073)
afercia Nov 26, 2018
b37b4ba
Latest Posts: typo in wp_get_recent_posts argument name (#12246)
eiriarte Nov 27, 2018
5aacd90
Fix modals in Edge. (#12241)
jasmussen Nov 27, 2018
09fe0c8
Docs: Add additional info around dependencies to clarify (#12346)
mkaz Nov 27, 2018
5ac7b89
Updated contributors.md with wordpress username (#12343)
jakeparis Nov 27, 2018
640b2ff
Editor: Apply IE11 input fix only when mounting TinyMCE (#12335)
aduth Nov 27, 2018
ef596ca
Editor: Merge meta attributes in getEditedPostAttribute (#12331)
aduth Nov 27, 2018
9cc1e49
Add end 2 end test to block switcher with removed blocks (#12323)
jorgefilipecosta Nov 27, 2018
f97617f
Add end 2 end test: should not revert title during a preview right af…
jorgefilipecosta Nov 27, 2018
6e3bb74
Reusable blocks: Don't show trashed blocks in the editor or frontend …
noisysocks Nov 28, 2018
4512195
Date: Optimize the usage of moment-timezone to save some kilobytes (#…
gziolo Nov 28, 2018
c014e04
Wire onBlur on mobile ported blocks and components. (#12370)
daniloercoli Nov 28, 2018
3b5ab7b
Add more selectors of the blocks api for the mobile app (#12383)
Tug Nov 28, 2018
e4fd51c
Polish editor style documentation (#12381)
jasmussen Nov 28, 2018
b5d4e15
Try fixing the tab navigation issue (#12390)
youknowriad Nov 28, 2018
2a66db0
Avoid changing default wpautop priority (#11722)
brandonpayton Nov 29, 2018
c446d06
Correct the docs manifest (#12411)
dd32 Nov 29, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
sudo: required

dist: trusty

language: php
Expand All @@ -19,11 +17,6 @@ cache:
- $HOME/.npm

before_install:
- |
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)' || {
echo "Only docs were updated, stopping build process."
exit
}
- nvm install && nvm use
- npm install npm -g

Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ For example, `add/gallery-block` means you're working on adding a new gallery bl

You can pick among all the <a href="https://github.com/WordPress/gutenberg/issues">tickets</a>, or some of the ones labelled <a href="https://github.com/WordPress/gutenberg/labels/Good%20First%20Issue">Good First Issue</a>.

The workflow is documented in greater detail in the [repository management](./docs/reference/repository-management.md) document.
The workflow is documented in greater detail in the [repository management](./docs/contributors/repository-management.md) document.

## Testing

Gutenberg contains both PHP and JavaScript code, and encourages testing and code style linting for both. It also incorporates end-to-end testing using [Google Puppeteer](https://developers.google.com/web/tools/puppeteer/). You can find out more details in [Testing Overview document](./docs/reference/testing-overview.md).
Gutenberg contains both PHP and JavaScript code, and encourages testing and code style linting for both. It also incorporates end-to-end testing using [Google Puppeteer](https://developers.google.com/web/tools/puppeteer/). You can find out more details in [Testing Overview document](./docs/contributors/testing-overview.md).

## Managing packages

Expand Down Expand Up @@ -238,7 +238,7 @@ Choose the correct version based on `CHANGELOG.md` files, confirm your choices a

## How Designers Can Contribute

If you'd like to contribute to the design or front-end, feel free to contribute to tickets labelled <a href="https://github.com/WordPress/gutenberg/issues?q=is%3Aissue+is%3Aopen+label%3ADesign">Design</a>. We could use your thoughtful replies, mockups, animatics, sketches, doodles. Proposed changes are best done as minimal and specific iterations on the work that precedes it so we can compare. If you use <a href="https://www.sketchapp.com/">Sketch</a>, you can grab <a href="https://cloudup.com/cMPXM8Va2cy">the source file for the mockups</a> (updated April 6th).
If you'd like to contribute to the design or front-end, feel free to contribute to tickets labelled [Needs Design](https://github.com/WordPress/gutenberg/issues?q=is%3Aissue+is%3Aopen+label%3A%22Needs+Design%22) or [Needs Design Feedback](https://github.com/WordPress/gutenberg/issues?q=is%3Aissue+is%3Aopen+label%3A"Needs+Design+Feedback%22). We could use your thoughtful replies, mockups, animatics, sketches, doodles. Proposed changes are best done as minimal and specific iterations on the work that precedes it so we can compare. If you use <a href="https://www.sketchapp.com/">Sketch</a>, you can grab <a href="https://cloudup.com/cMPXM8Va2cy">the source file for the mockups</a> (updated April 6th).

## Contribute to the Documentation

Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,5 @@ This list is manually curated to include valuable contributions by volunteers th
| @luehrsen | @luehrsen |
| @getsource | @mikeschroder |
| @greatislander | @greatislander |
| @sharazghouri | @sharaz |
| @jakeparis | @jakeparis |
3 changes: 1 addition & 2 deletions docs/contributors/scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ The editor also uses some popular third-party packages and scripts. Plugin devel
| [React](https://reactjs.org) | react | React is a JavaScript library for building user interfaces |
| [React Dom](https://reactjs.org/docs/react-dom.html) | react-dom | Serves as the entry point to the DOM and server renderers for React, intended to be paired with React |
| [Moment](https://momentjs.com/) | moment| Parse, validate, manipulate, and display dates and times in JavaScript |
| [TinyMCE Lists](https://www.tiny.cloud/docs/plugins/lists/) | tinymce-latest-lists| The `lists` plugin allows you to add numbered and bulleted lists to TinyMCE |
| [Lodash](https://lodash.com) | lodash| Lodash is a JavaScript library which provides utility functions for common programming tasks |

## Polyfill Scripts

The editor also provides polyfills for certain features that may not be available in all modern browsers.
It is recommened to use the main `wp-polyfill` script handle which takes care of loading all the below mentioned polyfills.
It is recommened to use the main `wp-polyfill` script handle which takes care of loading all the below mentioned polyfills.

| Script Name | Handle | Description |
|-------------|--------|-------------|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ transforms: {
// An attribute can be source from the shortcode attributes
align: {
type: 'string',
shortcode: function( named ) {
var align = named.align ? named.align : 'alignnone';
shortcode: function( attributes ) {
var align = attributes.named.align ? attributes.named.align : 'alignnone';
return align.replace( 'align', '' );
},
},
Expand Down
8 changes: 5 additions & 3 deletions docs/designers-developers/developers/data/data-core-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -1292,19 +1292,21 @@ Returns the permalink for the post.

*Returns*

The permalink.
The permalink, or null if the post is not viewable.

### getPermalinkParts

Returns the permalink for a post, split into it's three parts: the prefix, the postName, and the suffix.
Returns the permalink for a post, split into it's three parts: the prefix,
the postName, and the suffix.

*Parameters*

* state: Editor state.

*Returns*

The prefix, postName, and suffix for the permalink.
An object containing the prefix, postName, and suffix for
the permalink, or null if the post is not viewable.

### inSomeHistory

Expand Down
16 changes: 15 additions & 1 deletion docs/designers-developers/developers/themes/theme-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ This flag will make sure users are only able to choose colors from the `editor-c

Gutenberg supports the theme's [editor styles](https://codex.wordpress.org/Editor_Style), however it works a little differently than in the classic editor.

In the classic editor, the editor stylesheet is loaded directly into the iframe of the WYSIWYG editor, with no changes. Gutenberg, however, doesn't use iframes. To make sure your styles are applied only to the content of the editor, we automatically transform your editor styles by selectively rewriting or adjusting certain CSS selectors.
In the classic editor, the editor stylesheet is loaded directly into the iframe of the WYSIWYG editor, with no changes. Gutenberg, however, doesn't use iframes. To make sure your styles are applied only to the content of the editor, we automatically transform your editor styles by selectively rewriting or adjusting certain CSS selectors. This also allows Gutenberg to leverage your editor style in block variation previews.

For example, if you write `body { ... }` in your editor style, this is rewritten to `.editor-styles-wrapper { ... }`. This also means that you should _not_ target any of the editor class names directly.

Because it works a little differently, you need to opt-in to this by adding an extra snippet to your theme, in addition to the add_editor_style function:

Expand All @@ -212,6 +214,8 @@ add_theme_support('editor-styles');

You shouldn't need to change your editor styles too much; most themes can add the snippet above and get similar results in the classic editor and inside Gutenberg.

### Dark backgrounds

If your editor style relies on a dark background, you can add the following to adjust the color of the UI to work on dark backgrounds:

```php
Expand All @@ -221,6 +225,16 @@ add_theme_support( 'dark-editor-style' );

Note you don't need to add `add_theme_support( 'editor-styles' );` twice, but that rule does need to be present for the `dark-editor-style` rule to work.

### Enqueuing the editor style

To make sure your editor style is loaded and parsed correctly, enqueue it using the following method:

```php
add_editor_style( 'style-editor.css' );
```

It is enough to paste that in your `functions.php` file, for the style to be loaded and parsed.

### Basic colors

You can style the editor like any other webpage. Here's how to change the background color and the font color to blue:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Note that `BlockControls` is only visible when the block is currently selected a

## Inspector

<img src="https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/blocks/inspector.png" with="281" height="527" alt="inspector">
<img src="https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/designers-developers/developers/tutorials/block-tutorial/inspector.png" with="281" height="527" alt="inspector">

The inspector is used to display less-often-used settings or settings that require more screen space. The inspector should be used for **block-level settings only**.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Note the two script dependencies:
- __`wp-blocks`__ includes block type registration and related functions
- __`wp-element`__ includes the [WordPress Element abstraction](https://github.com/WordPress/gutenberg/tree/master/packages/element) for describing the structure of your blocks

If you were to use a component from the `wp-editor` package, for example the RichText component, you would also need to add `wp-editor` to the dependency list.

## Registering the Block

With the script enqueued, let's look at the implementation of the block itself:
Expand Down
Loading