Skip to content

Commit

Permalink
Docs (heading): Fix styles for the dropdown button in custom heading …
Browse files Browse the repository at this point in the history
…elements example.
  • Loading branch information
jodator committed Nov 19, 2020
1 parent dbd788c commit 12b1732
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<style>
h2.fancy, .ck-heading_heading2_fancy {
color: #ff0050;
h2.fancy, .ck.ck-button.ck-heading_heading2_fancy {
color: hsl(341, 100%, 50%);
font-size: 17px;
}
</style>
Expand Down
8 changes: 4 additions & 4 deletions packages/ckeditor5-heading/docs/features/headings.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ For example, the following editor will support the following two heading options

```html
<style>
// Styles for the heading in the content and for the dropdown item.
h2.fancy, .ck-heading_heading2_fancy {
/* Styles for the heading in the content and for the dropdown item. */
h2.fancy, .ck.ck-button.ck-heading_heading2_fancy {
color: #ff0050;
font-size: 17px;
}
Expand Down Expand Up @@ -212,7 +212,7 @@ The {@link module:heading/heading~Heading} plugin registers:
```js
editor.execute( 'heading', { value: 'heading2' } );
```

The {@link module:heading/headingbuttonsui~HeadingButtonsUI} plugin registers six UI button components that will execute the `'heading'` command with the proper value of the `value` attribute:

* `'heading1'`
Expand All @@ -221,7 +221,7 @@ The {@link module:heading/headingbuttonsui~HeadingButtonsUI} plugin registers si
* `'heading4'`
* `'heading5'`
* `'heading6'`

The {@link module:paragraph/paragraphbuttonui~ParagraphButtonUI} plugin registers the UI button component: `'paragraph'`.

<info-box>
Expand Down

0 comments on commit 12b1732

Please sign in to comment.