Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #14 from ckeditor/t/11
Browse files Browse the repository at this point in the history
Feature: Support for building the editor in another language than `en`. Closes #11.
  • Loading branch information
Reinmar committed Aug 15, 2017
2 parents 399fb50 + d17cda8 commit f4233a5
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 6 deletions.
10 changes: 10 additions & 0 deletions build-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
'use strict';

module.exports = {
// The editor creator to use.
editor: '@ckeditor/ckeditor5-editor-classic/src/classiceditor',

// The name under which the editor will be exported.
moduleName: 'ClassicEditor',

// Plugins to include in the build.
plugins: [
'@ckeditor/ckeditor5-presets/src/essentials',

Expand All @@ -24,6 +29,11 @@ module.exports = {
'@ckeditor/ckeditor5-list/src/list',
'@ckeditor/ckeditor5-paragraph/src/paragraph',
],

// UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
language: 'en',

// Editor config.
config: {
toolbar: [
'headings',
Expand Down
2 changes: 1 addition & 1 deletion build/ckeditor.compat.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/ckeditor.compat.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/ckeditor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/ckeditor.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"devDependencies": {
"@ckeditor/ckeditor5-dev-utils": "^3.0.0",
"@ckeditor/ckeditor5-dev-webpack-plugin": "^2.0.11",
"babel-core": "^6.24.0",
"babel-loader": "^6.4.0",
"babel-preset-env": "^1.2.2",
Expand Down
6 changes: 5 additions & 1 deletion webpack.compat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
const path = require( 'path' );
const webpack = require( 'webpack' );
const { bundler } = require( '@ckeditor/ckeditor5-dev-utils' );

const CKEditorWebpackPlugin = require( '@ckeditor/ckeditor5-dev-webpack-plugin' );
const BabiliPlugin = require( 'babili-webpack-plugin' );
const buildConfig = require( './build-config' );

module.exports = {
devtool: 'source-map',
Expand All @@ -26,6 +27,9 @@ module.exports = {
},

plugins: [
new CKEditorWebpackPlugin( {
languages: [ buildConfig.language ]
} ),
new BabiliPlugin( null, {
comments: false
} ),
Expand Down
6 changes: 5 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
const path = require( 'path' );
const webpack = require( 'webpack' );
const { bundler } = require( '@ckeditor/ckeditor5-dev-utils' );

const CKEditorWebpackPlugin = require( '@ckeditor/ckeditor5-dev-webpack-plugin' );
const BabiliPlugin = require( 'babili-webpack-plugin' );
const buildConfig = require( './build-config' );

module.exports = {
devtool: 'source-map',
Expand All @@ -23,6 +24,9 @@ module.exports = {
},

plugins: [
new CKEditorWebpackPlugin( {
languages: [ buildConfig.language ]
} ),
new BabiliPlugin( null, {
comments: false
} ),
Expand Down

0 comments on commit f4233a5

Please sign in to comment.