浏览代码

Docs: Improved the icon customization example in the FAQ.

Aleksander Nowodzinski 7 年之前
父节点
当前提交
2e6460d1fb
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      docs/builds/guides/faq.md

+ 4 - 2
docs/builds/guides/faq.md

@@ -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}.