Skip to content

Commit

Permalink
Merge branch 'stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Mar 20, 2018
2 parents dcb5595 + 2e6460d commit 1a1fdf7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/builds/guides/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,18 @@ At the same time, we recommend you to {@link builds/guides/development/installin

## How to customize the CKEditor 5 icons?

The easiest way is to use Webpack's [`NormalModuleReplacementPlugin`](https://webpack.js.org/plugins/normal-module-replacement-plugin/) plugin. To replace the bold icon with the italic (both provided by [ckeditor5-basic-styles](https://www.npmjs.com/package/@ckeditor/ckeditor5-basic-styles)) use the following code in your `webpack.config.js`:
The easiest way is to use Webpack's [`NormalModuleReplacementPlugin`](https://webpack.js.org/plugins/normal-module-replacement-plugin/) plugin. To replace the bold icon use the following code in your `webpack.config.js`:

```js
...
plugins: [
new webpack.NormalModuleReplacementPlugin(
/bold\.svg/,
'../../theme/icons/italic.svg'
'/absolute/path/to/my/icon.svg'
)
]
```

You can also use the relative path which is resolved relative to the resource that imports `bold.svg` (the {@link module:basic-styles/bold/boldui~BoldUI `BoldUI`} class file in this scenario).

Learn more about {@link builds/guides/integration/advanced-setup#webpack-configuration building CKEditor 5 using Webpack}.

0 comments on commit 1a1fdf7

Please sign in to comment.