Browse Source

DOC-479: More typo fixes

pull/1391/head
Lee Newson 6 years ago
parent
commit
da6806f8d9
  1. 2
      _includes/codepens/custom-toolbar-group-button/index.js
  2. 2
      _includes/configuration/toolbar-groups.md
  3. 4
      release-notes/release-notes52.md
  4. 2
      ui-components/toolbarbuttons.md
  5. 6
      ui-components/typesoftoolbarbuttons.md

2
_includes/codepens/custom-toolbar-group-button/index.js

@ -12,7 +12,7 @@ tinymce.init({
setup: function (editor) {
/* example, adding a group toolbar button */
editor.ui.registry.addGroupButton('alignment', {
editor.ui.registry.addGroupToolbarButton('alignment', {
icon: 'align-left',
tooltip: 'Alignment',
items: 'alignleft aligncenter alignright | alignjustify'

2
_includes/configuration/toolbar-groups.md

@ -6,7 +6,7 @@ The `toolbar_groups` option creates a toolbar button that displays a collection
> **Note:** The `toolbar_groups` feature is _only_ supported when using the `floating` toolbar mode. If the `toolbar_groups` option is used with other toolbar modes, the toolbar group button will not be displayed and a warning message will be printed in the console.
This option accepts an object, mapping the button name to the group configuration. For details on configuring toolbar groups, see: [`group toolbar button configuration`]({{site.baseurl}}/ui-components/typesoftoolbarbuttons/#groupbutton).
This option accepts an object, mapping the button name to the group configuration. For details on configuring toolbar groups, see: [`group toolbar button configuration`]({{site.baseurl}}/ui-components/typesoftoolbarbuttons/#grouptoolbarbutton).
**Type:** `Object`

4
release-notes/release-notes52.md

@ -49,12 +49,12 @@ For information on using the `TextSeeker` API, see: [{{site.productname}} APIs -
### New group toolbar button
The new `toolbar_groups` setting and `addGroupButton` registry API can be used to create a toolbar button that displays a collection of other toolbar buttons in a pop-up.
The new `toolbar_groups` setting and `addGroupToolbarButton` registry API can be used to create a toolbar button that displays a collection of other toolbar buttons in a pop-up.
![**Group toolbar button example**]({{site.baseurl}}/images/toolbar-group-example.png)
For information on using the `toolbar_groups` setting, see: [User interface options - `toolbar_groups`]({{ site.baseurl }}/configure/editor-appearance/#toolbar_groups).
For information on using the `addGroupButton` API, see: [Types of toolbar buttons - Group button]({{ site.baseurl }}/ui-components/typesoftoolbarbuttons/#groupbutton).
For information on using the `addGroupToolbarButton` API, see: [Types of toolbar buttons - Group button]({{ site.baseurl }}/ui-components/typesoftoolbarbuttons/#grouptoolbarbutton).
### Updated the table icons

2
ui-components/toolbarbuttons.md

@ -19,7 +19,7 @@ The methods for adding custom toolbar buttons are in the UI Registry part of the
* `editor.ui.registry.addToggleButton`(identifier, configuration)
* `editor.ui.registry.addSplitButton`(identifier, configuration)
* `editor.ui.registry.addMenuButton`(identifier, configuration)
* `editor.ui.registry.addGroupButton`(identifier, configuration)
* `editor.ui.registry.addGroupToolbarButton`(identifier, configuration)
The two arguments these methods take are:

6
ui-components/typesoftoolbarbuttons.md

@ -12,7 +12,7 @@ There are four types of Toolbar Buttons in {{site.productname}} {{site.productma
* [Toggle button](#togglebutton)
* [Split button](#splitbutton)
* [Menu button](#menubutton)
* [Group button](#groupbutton)
* [Group toolbar button](#grouptoolbarbutton)
### Basic button
@ -172,7 +172,7 @@ The `fetch` function is called when the toolbar menu button's menu is opened. It
Use the following demo [here]({{site.baseurl}}/demo/custom-toolbar-menu-button/) for help using the menu toolbar button.
### Group button
### Group toolbar button
{{ site.requires_5_2v }}
@ -199,7 +199,7 @@ A group toolbar button is a toolbar button that contains a collection of other t
| isDisabled | ( ) => boolean | Checks if the button is disabled. |
| setDisabled | (state: boolean) => void | Sets the button's disabled state. |
#### Group button example and explanation
#### Group toolbar button example and explanation
The following is a simple group toolbar button example:

Loading…
Cancel
Save