From 3f3c191f74c625650bdb3940ebcd8fd94d339d11 Mon Sep 17 00:00:00 2001 From: Kamil Piechaczek Date: Wed, 23 Jan 2019 10:26:24 +0100 Subject: [PATCH 1/2] Internal: Bumped the year. [skip ci] --- .eslintrc.js | 2 +- LICENSE.md | 2 +- src/decouplededitor.js | 2 +- src/decouplededitorui.js | 2 +- src/decouplededitoruiview.js | 2 +- tests/decouplededitor.js | 2 +- tests/decouplededitorui.js | 2 +- tests/decouplededitoruiview.js | 2 +- tests/manual/decouplededitor-editable.js | 2 +- tests/manual/decouplededitor.js | 2 +- tests/manual/memory.js | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 88dfc81..e82e66c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ diff --git a/LICENSE.md b/LICENSE.md index 1a24d69..1b15b65 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -2,7 +2,7 @@ Software License Agreement ========================== **Decoupled Editor** – https://github.com/ckeditor/ckeditor5-editor-decoupled
-Copyright (c) 2003-2018, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved. +Copyright (c) 2003-2019, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved. Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). diff --git a/src/decouplededitor.js b/src/decouplededitor.js index 3d99b93..895dd37 100644 --- a/src/decouplededitor.js +++ b/src/decouplededitor.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ diff --git a/src/decouplededitorui.js b/src/decouplededitorui.js index 2d8ec87..71635d0 100644 --- a/src/decouplededitorui.js +++ b/src/decouplededitorui.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ diff --git a/src/decouplededitoruiview.js b/src/decouplededitoruiview.js index f0813cb..6da35b3 100644 --- a/src/decouplededitoruiview.js +++ b/src/decouplededitoruiview.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ diff --git a/tests/decouplededitor.js b/tests/decouplededitor.js index c480d6c..949b3ac 100644 --- a/tests/decouplededitor.js +++ b/tests/decouplededitor.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ diff --git a/tests/decouplededitorui.js b/tests/decouplededitorui.js index f72870f..6132438 100644 --- a/tests/decouplededitorui.js +++ b/tests/decouplededitorui.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ diff --git a/tests/decouplededitoruiview.js b/tests/decouplededitoruiview.js index b6d5ef4..c9e46ad 100644 --- a/tests/decouplededitoruiview.js +++ b/tests/decouplededitoruiview.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ diff --git a/tests/manual/decouplededitor-editable.js b/tests/manual/decouplededitor-editable.js index 982ed33..24a1314 100644 --- a/tests/manual/decouplededitor-editable.js +++ b/tests/manual/decouplededitor-editable.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ diff --git a/tests/manual/decouplededitor.js b/tests/manual/decouplededitor.js index 3c5d329..457e644 100644 --- a/tests/manual/decouplededitor.js +++ b/tests/manual/decouplededitor.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ diff --git a/tests/manual/memory.js b/tests/manual/memory.js index 0a1098b..8f41509 100644 --- a/tests/manual/memory.js +++ b/tests/manual/memory.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ From 180ada464780ebc11ecc5010d1756d35ae006dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Krzto=C5=84?= Date: Thu, 24 Jan 2019 14:41:11 +0100 Subject: [PATCH 2/2] Simplify view property in `EditorUI`. --- src/decouplededitorui.js | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/decouplededitorui.js b/src/decouplededitorui.js index 71635d0..33c7679 100644 --- a/src/decouplededitorui.js +++ b/src/decouplededitorui.js @@ -29,10 +29,10 @@ export default class DecoupledEditorUI extends EditorUI { /** * The main (top–most) view of the editor UI. * - * @private - * @member {module:ui/editorui/editoruiview~EditorUIView} #_view + * @readonly + * @member {module:ui/editorui/editoruiview~EditorUIView} #view */ - this._view = view; + this.view = view; /** * A normalized `config.toolbar` object. @@ -43,16 +43,6 @@ export default class DecoupledEditorUI extends EditorUI { this._toolbarConfig = normalizeToolbarConfig( editor.config.get( 'toolbar' ) ); } - /** - * The main (top–most) view of the editor UI. - * - * @readonly - * @member {module:ui/editorui/editoruiview~EditorUIView} #view - */ - get view() { - return this._view; - } - /** * Initializes the UI. */ @@ -89,7 +79,7 @@ export default class DecoupledEditorUI extends EditorUI { * @inheritDoc */ destroy() { - this._view.destroy(); + this.view.destroy(); super.destroy(); }