Skip to content

Commit

Permalink
Merge ca4954d into 87b37c1
Browse files Browse the repository at this point in the history
  • Loading branch information
amalricBzh committed Jun 26, 2020
2 parents 87b37c1 + ca4954d commit ddf3614
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/installation.rst
Expand Up @@ -61,10 +61,10 @@ You can by running this command:
.. code-block:: bash
# if you are using NPM as package manager
$ npm install --save ckeditor@^4.0.0
$ npm install --save ckeditor4@^4.0.0
# if you are using Yarn as package manager
$ yarn add ckeditor@^4.0.0
$ yarn add ckeditor4@^4.0.0
Once installed, add the following lines to your Webpack Encore configuration file (this excludes the samples directory from the ckeditor node module):

Expand All @@ -76,14 +76,14 @@ Once installed, add the following lines to your Webpack Encore configuration fil
Encore
// ...
.copyFiles([
{from: './node_modules/ckeditor/', to: 'ckeditor/[path][name].[ext]', pattern: /\.(js|css)$/, includeSubdirectories: false},
{from: './node_modules/ckeditor/adapters', to: 'ckeditor/adapters/[path][name].[ext]'},
{from: './node_modules/ckeditor/lang', to: 'ckeditor/lang/[path][name].[ext]'},
{from: './node_modules/ckeditor/plugins', to: 'ckeditor/plugins/[path][name].[ext]'},
{from: './node_modules/ckeditor/skins', to: 'ckeditor/skins/[path][name].[ext]'}
{from: './node_modules/ckeditor4/', to: 'ckeditor/[path][name].[ext]', pattern: /\.(js|css)$/, includeSubdirectories: false},
{from: './node_modules/ckeditor4/adapters', to: 'ckeditor/adapters/[path][name].[ext]'},
{from: './node_modules/ckeditor4/lang', to: 'ckeditor/lang/[path][name].[ext]'},
{from: './node_modules/ckeditor4/plugins', to: 'ckeditor/plugins/[path][name].[ext]'},
{from: './node_modules/ckeditor4/skins', to: 'ckeditor/skins/[path][name].[ext]'}
])
// Uncomment the following line if you are using Webpack Encore <= 0.24
// .addLoader({test: /\.json$/i, include: [require('path').resolve(__dirname, 'node_modules/ckeditor')], loader: 'raw-loader', type: 'javascript/auto'})
// .addLoader({test: /\.json$/i, include: [require('path').resolve(__dirname, 'node_modules/ckeditor4')], loader: 'raw-loader', type: 'javascript/auto'})
;
Then, override the bundle's configuration to point to the new CKEditor path:
Expand Down

0 comments on commit ddf3614

Please sign in to comment.