@ckeditor/ckeditor5-editor-classic 34.1.0 → 35.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,206 @@
1
+ Changelog
2
+ =========
3
+
4
+ All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.
5
+
6
+ Changes for the past releases are available below.
7
+
8
+ ## [19.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v18.0.0...v19.0.0) (2020-04-29)
9
+
10
+ Internal changes only (updated dependencies, documentation, etc.).
11
+
12
+
13
+ ## [18.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v17.0.0...v18.0.0) (2020-03-19)
14
+
15
+ Internal changes only (updated dependencies, documentation, etc.).
16
+
17
+
18
+ ## [17.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v16.0.0...v17.0.0) (2020-02-19)
19
+
20
+ Internal changes only (updated dependencies, documentation, etc.).
21
+
22
+ ## [16.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v15.0.0...v16.0.0) (2019-12-04)
23
+
24
+ ### Features
25
+
26
+ * The main editor toolbar should respect the `config.toolbar.shouldNotGroupWhenFull` configuration (see [ckeditor/ckeditor5#5692](https://github.com/ckeditor/ckeditor5/issues/5692)). ([9a57e63](https://github.com/ckeditor/ckeditor5-editor-classic/commit/9a57e63))
27
+
28
+
29
+ ## [15.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v12.1.4...v15.0.0) (2019-10-23)
30
+
31
+ ### Features
32
+
33
+ * Enabled automatic items grouping in the main editor toolbar when there is not enough space to display them in a single row (see [ckeditor/ckeditor5#416](https://github.com/ckeditor/ckeditor5/issues/416)). ([4d20b70](https://github.com/ckeditor/ckeditor5-editor-classic/commit/4d20b70))
34
+
35
+
36
+ ## [12.1.4](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v12.1.3...v12.1.4) (2019-08-26)
37
+
38
+ ### Other changes
39
+
40
+ * The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([84ec68f](https://github.com/ckeditor/ckeditor5-editor-classic/commit/84ec68f))
41
+
42
+
43
+ ## [12.1.3](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v12.1.2...v12.1.3) (2019-07-10)
44
+
45
+ Internal changes only (updated dependencies, documentation, etc.).
46
+
47
+
48
+ ## [12.1.2](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v12.1.1...v12.1.2) (2019-07-04)
49
+
50
+ Internal changes only (updated dependencies, documentation, etc.).
51
+
52
+
53
+ ## [12.1.1](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v12.1.0...v12.1.1) (2019-06-05)
54
+
55
+ Internal changes only (updated dependencies, documentation, etc.).
56
+
57
+
58
+ ## [12.1.0](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v12.0.0...v12.1.0) (2019-04-10)
59
+
60
+ ### Features
61
+
62
+ * Introduced `EditorConfig#initialData`. ([fce3edc](https://github.com/ckeditor/ckeditor5-editor-classic/commit/fce3edc))
63
+
64
+
65
+ ## [12.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v11.0.2...v12.0.0) (2019-02-28)
66
+
67
+ ### Features
68
+
69
+ * Added support for the `config.placeholder` option which allows configuring the empty editor content placeholder (see [ckeditor/ckeditor5#479](https://github.com/ckeditor/ckeditor5/issues/479)). ([3450c23](https://github.com/ckeditor/ckeditor5-editor-classic/commit/3450c23))
70
+
71
+ ### Bug fixes
72
+
73
+ * Fixed memory leaks during editor initialization and destruction (see [ckeditor/ckeditor5#1341](https://github.com/ckeditor/ckeditor5/issues/1341)). ([a3c5c82](https://github.com/ckeditor/ckeditor5-editor-classic/commit/a3c5c82))
74
+
75
+ ### Other changes
76
+
77
+ * Adjustments to new editor initialization events. See breaking changes. ([61ccab0](https://github.com/ckeditor/ckeditor5-editor-classic/commit/61ccab0))
78
+ * Editor UI classes API refactoring. See breaking changes. ([74e27ae](https://github.com/ckeditor/ckeditor5-editor-classic/commit/74e27ae))
79
+
80
+ ### BREAKING CHANGES
81
+
82
+ * Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c))
83
+ * The `editor#dataReady` event was removed. The `editor.data#ready` event has been introduced and should be used instead.
84
+ * The `editor#pluginsReady` event was removed. Use plugin `afterInit()` method instead.
85
+ * Removed `ClassicEditor#element` property. The `ClassicEditorUI#element` property should be used instead.
86
+ * Removed `ClassicEditorUIView#editableElement`. Instead `ClassicEditorUI#getEditableElement()` method should be used.
87
+
88
+
89
+ ## [11.0.2](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v11.0.1...v11.0.2) (2018-12-05)
90
+
91
+ Internal changes only (updated dependencies, documentation, etc.).
92
+
93
+
94
+ ## [11.0.1](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v11.0.0...v11.0.1) (2018-10-08)
95
+
96
+ Internal changes only (updated dependencies, documentation, etc.).
97
+
98
+
99
+ ## [11.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v10.0.1...v11.0.0) (2018-07-18)
100
+
101
+ ### Features
102
+
103
+ * Editor can now be created with initial data passed to the `create()` method. Closes [#72](https://github.com/ckeditor/ckeditor5-editor-classic/issues/72). ([09cebc6](https://github.com/ckeditor/ckeditor5-editor-classic/commit/09cebc6))
104
+
105
+ ### Other changes
106
+
107
+ * Used the `EditorUI` as a parent class for the `ClassicEditorUI` (see [ckeditor/ckeditor5-core#130](https://github.com/ckeditor/ckeditor5-core/issues/130)). ([ae98cfd](https://github.com/ckeditor/ckeditor5-editor-classic/commit/ae98cfd))
108
+
109
+ ### BREAKING CHANGES
110
+
111
+ * The `ClassicEditor#element` property was renamed to `ClassicEditor#sourceElement` and `ClassicEditor#updateElement()` method to `ClassicEditor#updateSourceElement()`. See [ckeditor/ckeditor5-core#64](https://github.com/ckeditor/ckeditor5-core/issues/64).
112
+
113
+
114
+ ## [10.0.1](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v10.0.0...v10.0.1) (2018-06-21)
115
+
116
+ Internal changes only (updated dependencies, documentation, etc.).
117
+
118
+
119
+ ## [10.0.0](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25)
120
+
121
+ ### Other changes
122
+
123
+ * Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([95fe4c1](https://github.com/ckeditor/ckeditor5-editor-classic/commit/95fe4c1))
124
+
125
+ ### BREAKING CHANGES
126
+
127
+ * The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information.
128
+
129
+
130
+ ## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19)
131
+
132
+ Internal changes only (updated dependencies, documentation, etc.).
133
+
134
+
135
+ ## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10)
136
+
137
+ ### Other changes
138
+
139
+ * Increased the specificity of CSS rules. Introduced the `.ck` class for editor UI components (see: [ckeditor/ckeditor5#494](https://github.com/ckeditor/ckeditor5/issues/494)). ([e548bd0](https://github.com/ckeditor/ckeditor5-editor-classic/commit/e548bd0))
140
+
141
+
142
+ ## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15)
143
+
144
+ ### Other changes
145
+
146
+ * Migrated the editor styles to PostCSS. Moved visual styles to `@ckeditor/ckeditor5-theme-lark` (see [ckeditor/ckeditor5-ui#144](https://github.com/ckeditor/ckeditor5-ui/issues/144)). ([f24f97d](https://github.com/ckeditor/ckeditor5-editor-classic/commit/f24f97d))
147
+ * Removed the `.ck-editor-toolbar` class from the toolbar (see [ckeditor/ckeditor5-theme-lark#135](https://github.com/ckeditor/ckeditor5-theme-lark/issues/135)). ([6b4670c](https://github.com/ckeditor/ckeditor5-editor-classic/commit/6b4670c))
148
+
149
+
150
+ ## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14)
151
+
152
+ ### Other changes
153
+
154
+ * Aligned UI library usage to the [changes in the UI framework](https://github.com/ckeditor/ckeditor5-ui/pull/332).
155
+
156
+
157
+ ## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v0.8.0...v1.0.0-alpha.1) (2017-10-03)
158
+
159
+ ### Features
160
+
161
+ * The `StickyToolbarView` has been replaced by the `StickyPanelView` with a child `ToolbarView` (see [ckeditor/ckeditor5-ui#297](https://github.com/ckeditor/ckeditor5-ui/issues/297)). ([e4f591f](https://github.com/ckeditor/ckeditor5-editor-classic/commit/e4f591f))
162
+
163
+ ### BREAKING CHANGES
164
+
165
+ * The former attributes controling the position of the toolbar provided by the `StickyToolbarView` are now available under `ClassicEditorUIView#stickyPanel` (`editor.ui.view.stickyPanel`).
166
+
167
+
168
+ ## [0.8.0](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v0.7.3...v0.8.0) (2017-09-03)
169
+
170
+ ### Bug fixes
171
+
172
+ * The toolbar should never hide underneath the edited content. Closes [#62](https://github.com/ckeditor/ckeditor5-editor-classic/issues/62). Closes ckeditor/ckeditor5-upload[#33](https://github.com/ckeditor/ckeditor5-editor-classic/issues/33). ([511d28f](https://github.com/ckeditor/ckeditor5-editor-classic/commit/511d28f))
173
+
174
+ ### Features
175
+
176
+ * The toolbar should support a vertical offset from the top of the web page. Closes [#60](https://github.com/ckeditor/ckeditor5-editor-classic/issues/60). ([6739afc](https://github.com/ckeditor/ckeditor5-editor-classic/commit/6739afc))
177
+
178
+ ### Other changes
179
+
180
+ * Renamed the `classic.js` file to `classiceditor.js` to match the naming convention. Closes [#41](https://github.com/ckeditor/ckeditor5-editor-classic/issues/41). ([c5714ba](https://github.com/ckeditor/ckeditor5-editor-classic/commit/c5714ba))
181
+
182
+ ### BREAKING CHANGES
183
+
184
+ * The `classic.js` file containing `ClassicEditor` class has been renamed to `classiceditor.js`.
185
+
186
+
187
+ ## [0.7.3](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v0.7.2...v0.7.3) (2017-05-07)
188
+
189
+ Internal changes only (updated dependencies, documentation, etc.).
190
+
191
+ ## [0.7.2](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v0.7.1...v0.7.2) (2017-04-05)
192
+
193
+ ### Bug fixes
194
+
195
+ * It should be possible to use `ClassicEditor.create()` in its child classes. Closes [#53](https://github.com/ckeditor/ckeditor5-editor-classic/issues/53). ([95798ba](https://github.com/ckeditor/ckeditor5-editor-classic/commit/95798ba))
196
+
197
+ ### Other changes
198
+
199
+ * Code refactoring to share API with `ckeditor5-editor-inline`. Closes [#48](https://github.com/ckeditor/ckeditor5-editor-classic/issues/48). ([2bb1e4e](https://github.com/ckeditor/ckeditor5-editor-classic/commit/2bb1e4e))
200
+
201
+
202
+ ## [0.7.1](https://github.com/ckeditor/ckeditor5-editor-classic/compare/v0.7.0...v0.7.1) (2017-03-06)
203
+
204
+ ### Other changes
205
+
206
+ * Used `ToolbarView#etItemsFromConfig()` to bootstrap the toolbar in `ClassicEditorUI`. Closes [#51](https://github.com/ckeditor/ckeditor5/issues/51). ([53d58d9](https://github.com/ckeditor/ckeditor5-editor-classic/commit/53d58d9))
package/LICENSE.md CHANGED
@@ -11,6 +11,10 @@ Sources of Intellectual Property Included in CKEditor
11
11
 
12
12
  Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission.
13
13
 
14
+ The following libraries are included in CKEditor under the [MIT license](https://opensource.org/licenses/MIT):
15
+
16
+ * lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/.
17
+
14
18
  Trademarks
15
19
  ----------
16
20
 
package/README.md CHANGED
@@ -10,7 +10,7 @@ The classic editor implementation for CKEditor 5.
10
10
 
11
11
  This package contains the [`ClassicEditor`](https://ckeditor.com/docs/ckeditor5/latest/api/module_editor-classic_classiceditor-ClassicEditor.html) class. Follow there to learn more about this type of editor and how to initialize it.
12
12
 
13
- This package contains the source version of the classic editor. This editor implementation is also available in the [classic build](https://www.npmjs.com/package/@ckeditor/ckeditor5-build-classic). Read more about [CKEditor 5 builds](https://ckeditor.com/docs/ckeditor5/latest/installation/index.html).
13
+ This package contains the source version of the classic editor. This kind of editor implementation is also available as a ready-to-use [classic build](https://www.npmjs.com/package/@ckeditor/ckeditor5-build-classic). Read more about [CKEditor 5 predefined builds](https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/alternative-setups/predefined-builds.html) in the CKEditor 5 documentation.
14
14
 
15
15
  ## Documentation
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-editor-classic",
3
- "version": "34.1.0",
3
+ "version": "35.0.1",
4
4
  "description": "Classic editor implementation for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -11,22 +11,22 @@
11
11
  ],
12
12
  "main": "src/index.js",
13
13
  "dependencies": {
14
- "ckeditor5": "^34.1.0",
14
+ "ckeditor5": "^35.0.1",
15
15
  "lodash-es": "^4.17.15"
16
16
  },
17
17
  "devDependencies": {
18
- "@ckeditor/ckeditor5-basic-styles": "^34.1.0",
19
- "@ckeditor/ckeditor5-core": "^34.1.0",
18
+ "@ckeditor/ckeditor5-basic-styles": "^35.0.1",
19
+ "@ckeditor/ckeditor5-core": "^35.0.1",
20
20
  "@ckeditor/ckeditor5-dev-utils": "^30.0.0",
21
- "@ckeditor/ckeditor5-engine": "^34.1.0",
22
- "@ckeditor/ckeditor5-enter": "^34.1.0",
23
- "@ckeditor/ckeditor5-heading": "^34.1.0",
24
- "@ckeditor/ckeditor5-paragraph": "^34.1.0",
25
- "@ckeditor/ckeditor5-theme-lark": "^34.1.0",
26
- "@ckeditor/ckeditor5-typing": "^34.1.0",
27
- "@ckeditor/ckeditor5-ui": "^34.1.0",
28
- "@ckeditor/ckeditor5-undo": "^34.1.0",
29
- "@ckeditor/ckeditor5-utils": "^34.1.0",
21
+ "@ckeditor/ckeditor5-engine": "^35.0.1",
22
+ "@ckeditor/ckeditor5-enter": "^35.0.1",
23
+ "@ckeditor/ckeditor5-heading": "^35.0.1",
24
+ "@ckeditor/ckeditor5-paragraph": "^35.0.1",
25
+ "@ckeditor/ckeditor5-theme-lark": "^35.0.1",
26
+ "@ckeditor/ckeditor5-typing": "^35.0.1",
27
+ "@ckeditor/ckeditor5-ui": "^35.0.1",
28
+ "@ckeditor/ckeditor5-undo": "^35.0.1",
29
+ "@ckeditor/ckeditor5-utils": "^35.0.1",
30
30
  "webpack": "^5.58.1",
31
31
  "webpack-cli": "^4.9.0"
32
32
  },
@@ -48,7 +48,8 @@
48
48
  "src",
49
49
  "theme",
50
50
  "build",
51
- "ckeditor5-metadata.json"
51
+ "ckeditor5-metadata.json",
52
+ "CHANGELOG.md"
52
53
  ],
53
54
  "scripts": {
54
55
  "dll:build": "webpack"
@@ -16,7 +16,7 @@ import ClassicEditorUI from './classiceditorui';
16
16
  import ClassicEditorUIView from './classiceditoruiview';
17
17
 
18
18
  /**
19
- * The {@glink installation/advanced/alternative-setups/predefined-builds#classic-editor classic editor} implementation.
19
+ * The {@glink installation/getting-started/predefined-builds#classic-editor classic editor} implementation.
20
20
  * It uses an inline editable and a sticky toolbar, all enclosed in a boxed UI.
21
21
  * See the {@glink examples/builds/classic-editor demo}.
22
22
  *
@@ -27,9 +27,9 @@ import ClassicEditorUIView from './classiceditoruiview';
27
27
  *
28
28
  * The classic editor can be used directly from source (if you installed the
29
29
  * [`@ckeditor/ckeditor5-editor-classic`](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-classic) package)
30
- * but it is also available in the {@glink installation/advanced/alternative-setups/predefined-builds#classic-editor classic build}.
30
+ * but it is also available in the {@glink installation/getting-started/predefined-builds#classic-editor classic build}.
31
31
  *
32
- * {@glink installation/advanced/alternative-setups/predefined-builds Builds}
32
+ * {@glink installation/getting-started/predefined-builds Builds}
33
33
  * are ready-to-use editors with plugins bundled in. When using the editor from
34
34
  * source you need to take care of loading all plugins by yourself
35
35
  * (through the {@link module:core/editor/editorconfig~EditorConfig#plugins `config.plugins`} option).
@@ -89,7 +89,9 @@ export default class ClassicEditor extends Editor {
89
89
  /**
90
90
  * Destroys the editor instance, releasing all resources used by it.
91
91
  *
92
- * Updates the editor's source element with the data.
92
+ * Updates the original editor element with the data if the
93
+ * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy `updateSourceElementOnDestroy`}
94
+ * configuration option is set to `true`.
93
95
  *
94
96
  * @returns {Promise}
95
97
  */
@@ -171,7 +173,7 @@ export default class ClassicEditor extends Editor {
171
173
  * # Using the editor from source
172
174
  *
173
175
  * The code samples listed in the previous sections of this documentation assume that you are using an
174
- * {@glink installation/advanced/alternative-setups/predefined-builds editor build} (for example – `@ckeditor/ckeditor5-build-classic`).
176
+ * {@glink installation/getting-started/predefined-builds editor build} (for example – `@ckeditor/ckeditor5-build-classic`).
175
177
  *
176
178
  * If you want to use the classic editor from source (`@ckeditor/ckeditor5-editor-classic/src/classiceditor`),
177
179
  * you need to define the list of
@@ -186,9 +188,10 @@ export default class ClassicEditor extends Editor {
186
188
  * and the {@link module:editor-classic/classiceditorui~ClassicEditorUI#element editor element} will replace the passed element
187
189
  * in the DOM (the original one will be hidden and the editor will be injected next to it).
188
190
  *
189
- * Moreover, the editor data will be set back to the original element once the editor is destroyed and when a form, in which
190
- * this element is contained, is submitted (if the original element is a `<textarea>`). This ensures seamless integration with native
191
- * web forms.
191
+ * If the {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy updateSourceElementOnDestroy}
192
+ * option is set to `true`, the editor data will be set back to the original element once the editor is destroyed and when a form,
193
+ * in which this element is contained, is submitted (if the original element is a `<textarea>`). This ensures seamless integration
194
+ * with native web forms.
192
195
  *
193
196
  * If the initial data is passed, a detached editor will be created. In this case you need to insert it into the DOM manually.
194
197
  * It is available under the {@link module:editor-classic/classiceditorui~ClassicEditorUI#element `editor.ui.element`} property.