Explorar el Código

Merge branch 'master' into t/ckeditor5/479

Aleksander Nowodzinski hace 7 años
padre
commit
967add5e4b
Se han modificado 100 ficheros con 180 adiciones y 137 borrados
  1. 1 1
      packages/ckeditor5-ui/.eslintrc.js
  2. 1 1
      packages/ckeditor5-ui/LICENSE.md
  3. 12 4
      packages/ckeditor5-ui/docs/_snippets/examples/bootstrap-ui-inner.js
  4. 1 1
      packages/ckeditor5-ui/docs/_snippets/examples/bootstrap-ui.js
  5. 1 1
      packages/ckeditor5-ui/docs/_snippets/features/blocktoolbar.js
  6. 11 3
      packages/ckeditor5-ui/docs/framework/guides/external-ui.md
  7. 1 1
      packages/ckeditor5-ui/lang/translations/ar.po
  8. 1 1
      packages/ckeditor5-ui/lang/translations/ast.po
  9. 18 0
      packages/ckeditor5-ui/lang/translations/az.po
  10. 1 1
      packages/ckeditor5-ui/lang/translations/cs.po
  11. 1 1
      packages/ckeditor5-ui/lang/translations/da.po
  12. 1 1
      packages/ckeditor5-ui/lang/translations/de-ch.po
  13. 1 1
      packages/ckeditor5-ui/lang/translations/de.po
  14. 1 1
      packages/ckeditor5-ui/lang/translations/el.po
  15. 1 1
      packages/ckeditor5-ui/lang/translations/en-au.po
  16. 1 1
      packages/ckeditor5-ui/lang/translations/en.po
  17. 1 1
      packages/ckeditor5-ui/lang/translations/eo.po
  18. 1 1
      packages/ckeditor5-ui/lang/translations/es.po
  19. 1 1
      packages/ckeditor5-ui/lang/translations/et.po
  20. 1 1
      packages/ckeditor5-ui/lang/translations/eu.po
  21. 1 1
      packages/ckeditor5-ui/lang/translations/fa.po
  22. 1 1
      packages/ckeditor5-ui/lang/translations/fi.po
  23. 1 1
      packages/ckeditor5-ui/lang/translations/fr.po
  24. 1 1
      packages/ckeditor5-ui/lang/translations/gl.po
  25. 3 3
      packages/ckeditor5-ui/lang/translations/he.po
  26. 1 1
      packages/ckeditor5-ui/lang/translations/hr.po
  27. 1 1
      packages/ckeditor5-ui/lang/translations/hu.po
  28. 1 1
      packages/ckeditor5-ui/lang/translations/it.po
  29. 1 1
      packages/ckeditor5-ui/lang/translations/ja.po
  30. 1 1
      packages/ckeditor5-ui/lang/translations/km.po
  31. 1 1
      packages/ckeditor5-ui/lang/translations/kn.po
  32. 2 2
      packages/ckeditor5-ui/lang/translations/ku.po
  33. 1 1
      packages/ckeditor5-ui/lang/translations/nb.po
  34. 1 1
      packages/ckeditor5-ui/lang/translations/ne.po
  35. 1 1
      packages/ckeditor5-ui/lang/translations/nl.po
  36. 1 1
      packages/ckeditor5-ui/lang/translations/no.po
  37. 1 1
      packages/ckeditor5-ui/lang/translations/pl.po
  38. 1 1
      packages/ckeditor5-ui/lang/translations/pt-br.po
  39. 1 1
      packages/ckeditor5-ui/lang/translations/pt.po
  40. 1 1
      packages/ckeditor5-ui/lang/translations/ro.po
  41. 1 1
      packages/ckeditor5-ui/lang/translations/ru.po
  42. 1 1
      packages/ckeditor5-ui/lang/translations/sk.po
  43. 1 1
      packages/ckeditor5-ui/lang/translations/sq.po
  44. 1 1
      packages/ckeditor5-ui/lang/translations/sv.po
  45. 1 1
      packages/ckeditor5-ui/lang/translations/tr.po
  46. 1 1
      packages/ckeditor5-ui/lang/translations/ug.po
  47. 1 1
      packages/ckeditor5-ui/lang/translations/uk.po
  48. 1 1
      packages/ckeditor5-ui/lang/translations/zh-cn.po
  49. 1 1
      packages/ckeditor5-ui/lang/translations/zh.po
  50. 1 1
      packages/ckeditor5-ui/src/bindings/clickoutsidehandler.js
  51. 1 1
      packages/ckeditor5-ui/src/bindings/preventdefault.js
  52. 1 1
      packages/ckeditor5-ui/src/bindings/submithandler.js
  53. 1 1
      packages/ckeditor5-ui/src/button/button.jsdoc
  54. 1 1
      packages/ckeditor5-ui/src/button/buttonview.js
  55. 1 1
      packages/ckeditor5-ui/src/button/switchbuttonview.js
  56. 1 1
      packages/ckeditor5-ui/src/componentfactory.js
  57. 1 1
      packages/ckeditor5-ui/src/dropdown/button/dropdownbutton.jsdoc
  58. 1 1
      packages/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js
  59. 1 1
      packages/ckeditor5-ui/src/dropdown/button/splitbuttonview.js
  60. 1 1
      packages/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.jsdoc
  61. 1 1
      packages/ckeditor5-ui/src/dropdown/dropdownpanelview.js
  62. 1 1
      packages/ckeditor5-ui/src/dropdown/dropdownview.js
  63. 1 1
      packages/ckeditor5-ui/src/dropdown/utils.js
  64. 12 12
      packages/ckeditor5-ui/src/editableui/editableuiview.js
  65. 1 1
      packages/ckeditor5-ui/src/editableui/inline/inlineeditableuiview.js
  66. 1 1
      packages/ckeditor5-ui/src/editorui/boxed/boxededitoruiview.js
  67. 1 14
      packages/ckeditor5-ui/src/editorui/editoruiview.js
  68. 1 1
      packages/ckeditor5-ui/src/focuscycler.js
  69. 1 1
      packages/ckeditor5-ui/src/icon/iconview.js
  70. 1 1
      packages/ckeditor5-ui/src/iframe/iframeview.js
  71. 1 1
      packages/ckeditor5-ui/src/inputtext/inputtextview.js
  72. 1 1
      packages/ckeditor5-ui/src/label/labelview.js
  73. 1 1
      packages/ckeditor5-ui/src/labeledinput/labeledinputview.js
  74. 1 1
      packages/ckeditor5-ui/src/list/listitemview.js
  75. 1 1
      packages/ckeditor5-ui/src/list/listseparatorview.js
  76. 1 1
      packages/ckeditor5-ui/src/list/listview.js
  77. 1 1
      packages/ckeditor5-ui/src/model.js
  78. 1 1
      packages/ckeditor5-ui/src/notification/notification.js
  79. 1 1
      packages/ckeditor5-ui/src/panel/balloon/balloonpanelview.js
  80. 1 1
      packages/ckeditor5-ui/src/panel/balloon/contextualballoon.js
  81. 1 1
      packages/ckeditor5-ui/src/panel/sticky/stickypanelview.js
  82. 1 1
      packages/ckeditor5-ui/src/template.js
  83. 8 5
      packages/ckeditor5-ui/src/toolbar/balloon/balloontoolbar.js
  84. 2 1
      packages/ckeditor5-ui/src/toolbar/block/blockbuttonview.js
  85. 16 3
      packages/ckeditor5-ui/src/toolbar/block/blocktoolbar.js
  86. 1 1
      packages/ckeditor5-ui/src/toolbar/enabletoolbarkeyboardfocus.js
  87. 1 1
      packages/ckeditor5-ui/src/toolbar/normalizetoolbarconfig.js
  88. 1 1
      packages/ckeditor5-ui/src/toolbar/toolbarseparatorview.js
  89. 1 1
      packages/ckeditor5-ui/src/toolbar/toolbarview.js
  90. 1 1
      packages/ckeditor5-ui/src/tooltip/tooltipview.js
  91. 6 1
      packages/ckeditor5-ui/src/view.js
  92. 1 1
      packages/ckeditor5-ui/src/viewcollection.js
  93. 1 1
      packages/ckeditor5-ui/tests/_utils-tests/utils.js
  94. 1 1
      packages/ckeditor5-ui/tests/_utils/utils.js
  95. 1 1
      packages/ckeditor5-ui/tests/bindings/clickoutsidehandler.js
  96. 1 1
      packages/ckeditor5-ui/tests/bindings/preventdefault.js
  97. 1 1
      packages/ckeditor5-ui/tests/bindings/submithandler.js
  98. 1 1
      packages/ckeditor5-ui/tests/button/buttonview.js
  99. 1 1
      packages/ckeditor5-ui/tests/button/switchbuttonview.js
  100. 1 1
      packages/ckeditor5-ui/tests/componentfactory.js

+ 1 - 1
packages/ckeditor5-ui/.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/LICENSE.md

@@ -2,7 +2,7 @@ Software License Agreement
 ==========================
 
 **CKEditor 5 UI Framework** – https://github.com/ckeditor/ckeditor5-ui <br>
-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).
 

+ 12 - 4
packages/ckeditor5-ui/docs/_snippets/examples/bootstrap-ui-inner.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.
  */
 
@@ -78,14 +78,13 @@ export default class BootstrapEditor extends Editor {
 	static create( element, config ) {
 		return new Promise( resolve => {
 			const editor = new this( element, config );
-			const editable = editor.ui.view.editable;
 
 			resolve(
 				editor.initPlugins()
 					// Initialize the UI first. See the BootstrapEditorUI class to learn more.
 					.then( () => editor.ui.init( element ) )
 					// Bind the editor editing layer to the editable in DOM.
-					.then( () => editor.editing.view.attachDomRoot( editable.element ) )
+					.then( () => editor.editing.view.attachDomRoot( editor.ui.getEditableElement() ) )
 					// Fill the editable with the initial data.
 					.then( () => editor.data.init( getDataFromElement( element ) ) )
 					// Fire the events that announce that the editor is complete and ready to use.
@@ -133,6 +132,8 @@ class BootstrapEditorUI extends EditorUI {
 		} );
 	}
 
+	// All EditorUI subclasses should expose their view instance
+	// so other UI classes can access it if necessary.
 	get view() {
 		return this._view;
 	}
@@ -153,6 +154,9 @@ class BootstrapEditorUI extends EditorUI {
 		view.editable.bind( 'isFocused' ).to( editor.editing.view.document );
 		view.editable.name = editingRoot.rootName;
 
+		// Register editable element so it is available via getEditableElement() method.
+		this._editableElements.set( view.editable.name, view.editable.element );
+
 		// Setup the existing, external Bootstrap UI so it works with the rest of the editor.
 		this._setupBootstrapToolbarButtons();
 		this._setupBootstrapHeadingDropdown();
@@ -161,13 +165,17 @@ class BootstrapEditorUI extends EditorUI {
 		this._elementReplacer.replace( replacementElement, view.editable.element );
 
 		// Tell the world that the UI of the editor is ready to use.
-		this.ready();
+		this.fire( 'ready' );
 	}
 
 	destroy() {
 		// Restore the original editor#element.
 		this._elementReplacer.restore();
 
+		// Destroy the view.
+		this._view.editable.destroy();
+		this._view.destroy();
+
 		super.destroy();
 	}
 

+ 1 - 1
packages/ckeditor5-ui/docs/_snippets/examples/bootstrap-ui.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/docs/_snippets/features/blocktoolbar.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.
  */
 

+ 11 - 3
packages/ckeditor5-ui/docs/framework/guides/external-ui.md

@@ -97,14 +97,13 @@ export default class BootstrapEditor extends Editor {
 	static create( element, config ) {
 		return new Promise( resolve => {
 			const editor = new this( element, config );
-			const editable = editor.ui.view.editable;
 
 			resolve(
 				editor.initPlugins()
 					// Initialize the UI first. See the BootstrapEditorUI class to learn more.
 					.then( () => editor.ui.init( element ) )
 					// Bind the editor editing layer to the editable in DOM.
-					.then( () => editor.editing.view.attachDomRoot( editable.element ) )
+					.then( () => editor.editing.view.attachDomRoot( editor.ui.getEditableElement() ) )
 					// Fill the editable with the initial data.
 					.then( () => editor.data.init( getDataFromElement( element ) ) )
 					// Fire the events that announce that the editor is complete and ready to use.
@@ -268,6 +267,8 @@ class BootstrapEditorUI extends EditorUI {
 		} );
 	}
 
+	// All EditorUI subclasses should expose their view instance
+	// so other UI classes can access it if necessary.
 	get view() {
 		return this._view;
 	}
@@ -288,6 +289,9 @@ class BootstrapEditorUI extends EditorUI {
 		view.editable.bind( 'isFocused' ).to( editor.editing.view.document );
 		view.editable.name = editingRoot.rootName;
 
+		// Register editable element so it is available via getEditableElement() method.
+		this._editableElements.set( view.editable.name, view.editable.element );
+
 		// Setup the existing, external Bootstrap UI so it works with the rest of the editor.
 		this._setupBootstrapToolbarButtons();
 		this._setupBootstrapHeadingDropdown();
@@ -296,13 +300,17 @@ class BootstrapEditorUI extends EditorUI {
 		this._elementReplacer.replace( replacementElement, view.editable.element );
 
 		// Tell the world that the UI of the editor is ready to use.
-		this.ready();
+		this.fire( 'ready' );
 	}
 
 	destroy() {
 		// Restore the original editor#element.
 		this._elementReplacer.restore();
 
+		// Destroy the view.
+		this._view.editable.destroy();
+		this._view.destroy();
+
 		super.destroy();
 	}
 

+ 1 - 1
packages/ckeditor5-ui/lang/translations/ar.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Arabic (https://www.transifex.com/ckeditor/teams/11143/ar/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/ast.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Asturian (https://www.transifex.com/ckeditor/teams/11143/ast/)\n"

+ 18 - 0
packages/ckeditor5-ui/lang/translations/az.po

@@ -0,0 +1,18 @@
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
+msgid ""
+msgstr ""
+"Language-Team: Azerbaijani (https://www.transifex.com/ckeditor/teams/11143/az/)\n"
+"Language: az\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+msgctxt "Title of the CKEditor5 editor."
+msgid "Rich Text Editor, %0"
+msgstr "Rich Text Redaktoru, %0"
+
+msgctxt "Title of the CKEditor5 editor."
+msgid "Rich Text Editor"
+msgstr "Rich Text Redaktoru"
+
+msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
+msgid "Edit block"
+msgstr "Redaktə etmək bloku"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/cs.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Czech (https://www.transifex.com/ckeditor/teams/11143/cs/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/da.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Danish (https://www.transifex.com/ckeditor/teams/11143/da/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/de-ch.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: German (Switzerland) (https://www.transifex.com/ckeditor/teams/11143/de_CH/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/de.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: German (https://www.transifex.com/ckeditor/teams/11143/de/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/el.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Greek (https://www.transifex.com/ckeditor/teams/11143/el/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/en-au.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: English (Australia) (https://www.transifex.com/ckeditor/teams/11143/en_AU/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/en.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language: \n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/eo.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Esperanto (https://www.transifex.com/ckeditor/teams/11143/eo/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/es.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Spanish (https://www.transifex.com/ckeditor/teams/11143/es/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/et.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Estonian (https://www.transifex.com/ckeditor/teams/11143/et/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/eu.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Basque (https://www.transifex.com/ckeditor/teams/11143/eu/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/fa.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Persian (https://www.transifex.com/ckeditor/teams/11143/fa/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/fi.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Finnish (https://www.transifex.com/ckeditor/teams/11143/fi/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/fr.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: French (https://www.transifex.com/ckeditor/teams/11143/fr/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/gl.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Galician (https://www.transifex.com/ckeditor/teams/11143/gl/)\n"

+ 3 - 3
packages/ckeditor5-ui/lang/translations/he.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Hebrew (https://www.transifex.com/ckeditor/teams/11143/he/)\n"
@@ -7,11 +7,11 @@ msgstr ""
 
 msgctxt "Title of the CKEditor5 editor."
 msgid "Rich Text Editor, %0"
-msgstr "עורך טקסט עשיר"
+msgstr "עורך טקסט עשיר, %0"
 
 msgctxt "Title of the CKEditor5 editor."
 msgid "Rich Text Editor"
-msgstr ""
+msgstr "עורך טקסט עשיר"
 
 msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
 msgid "Edit block"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/hr.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Croatian (https://www.transifex.com/ckeditor/teams/11143/hr/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/hu.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Hungarian (https://www.transifex.com/ckeditor/teams/11143/hu/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/it.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Italian (https://www.transifex.com/ckeditor/teams/11143/it/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/ja.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Japanese (https://www.transifex.com/ckeditor/teams/11143/ja/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/km.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Khmer (https://www.transifex.com/ckeditor/teams/11143/km/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/kn.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Kannada (https://www.transifex.com/ckeditor/teams/11143/kn/)\n"

+ 2 - 2
packages/ckeditor5-ui/lang/translations/ku.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Kurdish (https://www.transifex.com/ckeditor/teams/11143/ku/)\n"
@@ -15,4 +15,4 @@ msgstr "سەرنوسەری دەقی بەپیت"
 
 msgctxt "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
 msgid "Edit block"
-msgstr ""
+msgstr "دەستکاری بلۆک"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/nb.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Norwegian Bokmål (https://www.transifex.com/ckeditor/teams/11143/nb/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/ne.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Nepali (Nepal) (https://www.transifex.com/ckeditor/teams/11143/ne_NP/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/nl.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Dutch (https://www.transifex.com/ckeditor/teams/11143/nl/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/no.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Norwegian (https://www.transifex.com/ckeditor/teams/11143/no/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/pl.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Polish (https://www.transifex.com/ckeditor/teams/11143/pl/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/pt-br.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Portuguese (Brazil) (https://www.transifex.com/ckeditor/teams/11143/pt_BR/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/pt.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Portuguese (https://www.transifex.com/ckeditor/teams/11143/pt/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/ro.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Romanian (https://www.transifex.com/ckeditor/teams/11143/ro/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/ru.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Russian (https://www.transifex.com/ckeditor/teams/11143/ru/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/sk.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Slovak (https://www.transifex.com/ckeditor/teams/11143/sk/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/sq.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Albanian (https://www.transifex.com/ckeditor/teams/11143/sq/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/sv.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Swedish (https://www.transifex.com/ckeditor/teams/11143/sv/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/tr.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Turkish (https://www.transifex.com/ckeditor/teams/11143/tr/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/ug.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Uighur (https://www.transifex.com/ckeditor/teams/11143/ug/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/uk.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Ukrainian (https://www.transifex.com/ckeditor/teams/11143/uk/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/zh-cn.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Chinese (China) (https://www.transifex.com/ckeditor/teams/11143/zh_CN/)\n"

+ 1 - 1
packages/ckeditor5-ui/lang/translations/zh.po

@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
+# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 msgid ""
 msgstr ""
 "Language-Team: Chinese (Taiwan) (https://www.transifex.com/ckeditor/teams/11143/zh_TW/)\n"

+ 1 - 1
packages/ckeditor5-ui/src/bindings/clickoutsidehandler.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/bindings/preventdefault.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/bindings/submithandler.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/button/button.jsdoc

@@ -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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/button/buttonview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/button/switchbuttonview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/componentfactory.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/dropdown/button/dropdownbutton.jsdoc

@@ -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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/dropdown/button/dropdownbuttonview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/dropdown/button/splitbuttonview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/dropdown/dropdownpanelfocusable.jsdoc

@@ -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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/dropdown/dropdownpanelview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/dropdown/dropdownview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/dropdown/utils.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.
  */
 

+ 12 - 12
packages/ckeditor5-ui/src/editableui/editableuiview.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.
  */
 
@@ -50,34 +50,34 @@ export default class EditableUIView extends View {
 		/**
 		 * The element which is the main editable element (usually the one with `contentEditable="true"`).
 		 *
-		 * @readonly
-		 * @member {HTMLElement} #editableElement
+		 * @private
+		 * @member {HTMLElement} #_editableElement
 		 */
-		this.editableElement = editableElement;
+		this._editableElement = editableElement;
 
 		this.viewRoot = null;
 
 		/**
-		 * Whether an external {@link #editableElement} was passed into the constructor, which also means
+		 * Whether an external {@link #_editableElement} was passed into the constructor, which also means
 		 * the view will not render its {@link #template}.
 		 *
-		 * @protected
-		 * @member {HTMLElement} #_hasExternalElement
+		 * @private
+		 * @member {Boolean} #_hasExternalElement
 		 */
-		this._hasExternalElement = !!this.editableElement;
+		this._hasExternalElement = !!this._editableElement;
 	}
 
 	/**
 	 * Renders the view by either applying the {@link #template} to the existing
-	 * {@link #editableElement} or assigning {@link #element} as {@link #editableElement}.
+	 * {@link #_editableElement} or assigning {@link #element} as {@link #_editableElement}.
 	 */
 	render() {
 		super.render();
 
 		if ( this._hasExternalElement ) {
-			this.template.apply( this.element = this.editableElement );
+			this.template.apply( this.element = this._editableElement );
 		} else {
-			this.editableElement = this.element;
+			this._editableElement = this.element;
 		}
 	}
 
@@ -108,7 +108,7 @@ export default class EditableUIView extends View {
 	 */
 	destroy() {
 		if ( this._hasExternalElement ) {
-			this.template.revert( this.editableElement );
+			this.template.revert( this._editableElement );
 		}
 
 		super.destroy();

+ 1 - 1
packages/ckeditor5-ui/src/editableui/inline/inlineeditableuiview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/editorui/boxed/boxededitoruiview.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.
  */
 

+ 1 - 14
packages/ckeditor5-ui/src/editorui/editoruiview.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.
  */
 
@@ -85,16 +85,3 @@ export default class EditorUIView extends View {
 		document.body.appendChild( bodyElement );
 	}
 }
-
-/**
- * This error is thrown when a component tries to access deprecated `editableElement` property in any of the subclasses of
- * {@link module:ui/editorui/editoruiview~EditorUIView} (which usually is one of
- * {@link module:editor-balloon/ballooneditoruiview~BalloonEditorUIView},
- * {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView},
- * {@link module:editor-decoupled/decouplededitoruiview~DecoupledEditorUIView},
- * {@link module:editor-inline/inlineeditoruiview~InlineEditorUIView}).
- * Instead the {@link module:ui/editableui/editableuiview~EditableUIView#editableElement `EditableUIView editableElement`}
- * could be used.
- *
- * @error deprecated-ui-view-editableElement
- */

+ 1 - 1
packages/ckeditor5-ui/src/focuscycler.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/icon/iconview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/iframe/iframeview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/inputtext/inputtextview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/label/labelview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/labeledinput/labeledinputview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/list/listitemview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/list/listseparatorview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/list/listview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/model.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/notification/notification.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/panel/balloon/balloonpanelview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/panel/balloon/contextualballoon.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/panel/sticky/stickypanelview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/template.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.
  */
 

+ 8 - 5
packages/ckeditor5-ui/src/toolbar/balloon/balloontoolbar.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.
  */
 
@@ -52,7 +52,7 @@ export default class BalloonToolbar extends Plugin {
 		this.toolbarView = this._createToolbarView();
 
 		/**
-		 * Tracks the focus of the {@link module:ui/editableui/editableuiview~EditableUIView#editableElement}
+		 * Tracks the focus of the {@link module:core/editor/editorui~EditorUI#getEditableElement editable element}
 		 * and the {@link #toolbarView}. When both are blurred then the toolbar should hide.
 		 *
 		 * @readonly
@@ -62,7 +62,7 @@ export default class BalloonToolbar extends Plugin {
 
 		// Wait for the EditorUI#init. EditableElement is not available before.
 		editor.ui.once( 'ready', () => {
-			this.focusTracker.add( editor.ui.view.editable.editableElement );
+			this.focusTracker.add( editor.ui.getEditableElement() );
 			this.focusTracker.add( this.toolbarView.element );
 		} );
 
@@ -254,9 +254,12 @@ export default class BalloonToolbar extends Plugin {
 	 * @inheritDoc
 	 */
 	destroy() {
-		this._fireSelectionChangeDebounced.cancel();
-		this.stopListening();
 		super.destroy();
+
+		this.stopListening();
+		this._fireSelectionChangeDebounced.cancel();
+		this.toolbarView.destroy();
+		this.focusTracker.destroy();
 	}
 
 	/**

+ 2 - 1
packages/ckeditor5-ui/src/toolbar/block/blockbuttonview.js

@@ -1,5 +1,6 @@
 /**
- * Copyright (c) 2016 - 2017, CKSource - Frederico Knabben. All rights reserved.
+ * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
  */
 
 /**

+ 16 - 3
packages/ckeditor5-ui/src/toolbar/block/blocktoolbar.js

@@ -1,5 +1,6 @@
 /**
- * Copyright (c) 2016 - 2017, CKSource - Frederico Knabben. All rights reserved.
+ * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
  */
 
 /**
@@ -150,6 +151,18 @@ export default class BlockToolbar extends Plugin {
 		}
 	}
 
+	/**
+	 * @inheritDoc
+	 */
+	destroy() {
+		super.destroy();
+
+		// Destroy created UI components as they are not automatically destroyed (see ckeditor5#1341).
+		this.panelView.destroy();
+		this.buttonView.destroy();
+		this.toolbarView.destroy();
+	}
+
 	/**
 	 * Creates the {@link #toolbarView}.
 	 *
@@ -306,7 +319,7 @@ export default class BlockToolbar extends Plugin {
 
 		this.panelView.pin( {
 			target: this.buttonView.element,
-			limiter: this.editor.ui.view.editableElement
+			limiter: this.editor.ui.getEditableElement()
 		} );
 
 		if ( !wasVisible ) {
@@ -337,7 +350,7 @@ export default class BlockToolbar extends Plugin {
 	_attachButtonToElement( targetElement ) {
 		const contentStyles = window.getComputedStyle( targetElement );
 
-		const editableRect = new Rect( this.editor.ui.view.editableElement );
+		const editableRect = new Rect( this.editor.ui.getEditableElement() );
 		const contentPaddingTop = parseInt( contentStyles.paddingTop, 10 );
 		// When line height is not an integer then thread it as "normal".
 		// MDN says that 'normal' == ~1.2 on desktop browsers.

+ 1 - 1
packages/ckeditor5-ui/src/toolbar/enabletoolbarkeyboardfocus.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/toolbar/normalizetoolbarconfig.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/toolbar/toolbarseparatorview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/toolbar/toolbarview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/src/tooltip/tooltipview.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.
  */
 

+ 6 - 1
packages/ckeditor5-ui/src/view.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.
  */
 
@@ -493,6 +493,11 @@ export default class View {
 		this.stopListening();
 
 		this._viewCollections.map( c => c.destroy() );
+
+		// Template isn't obligatory for views.
+		if ( this.template && this.template._revertData ) {
+			this.template.revert( this.element );
+		}
 	}
 
 	/**

+ 1 - 1
packages/ckeditor5-ui/src/viewcollection.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/tests/_utils-tests/utils.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/tests/_utils/utils.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/tests/bindings/clickoutsidehandler.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/tests/bindings/preventdefault.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/tests/bindings/submithandler.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/tests/button/buttonview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/tests/button/switchbuttonview.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.
  */
 

+ 1 - 1
packages/ckeditor5-ui/tests/componentfactory.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.
  */
 

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio