Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
b923da9
Rename conversion exports.
Mati365 Jun 10, 2025
254039e
Rename downcast dispatcher exports
Mati365 Jun 10, 2025
dd3269c
Rename dom converter exports
Mati365 Jun 10, 2025
1544f10
Add re-exports to index.ts
Mati365 Jun 10, 2025
34e0c20
Add diff item / upcasts re-exports.
Mati365 Jun 10, 2025
c12e2c7
Add differ items export and renames.
Mati365 Jun 10, 2025
d881322
Add `DifferItemReinsert` re-export.
Mati365 Jun 10, 2025
c516fb3
Re-export downcast utils
Mati365 Jun 10, 2025
dd00944
Adjust imports.
Mati365 Jun 10, 2025
ef39fa6
Re-export, rename `HighlightDescriptor`.
Mati365 Jun 10, 2025
25aa2fe
Adjust hightlight descriptor exports.
Mati365 Jun 10, 2025
a0e4741
Re-export downcast filler.
Mati365 Jun 10, 2025
bdfd4c7
Add attribute descriptor re-export.
Mati365 Jun 10, 2025
06d22ea
Add more downcast exports.
Mati365 Jun 10, 2025
42cd5da
Add data processor html writer.
Mati365 Jun 10, 2025
36d0db9
Adjust dev utils packages.
Mati365 Jun 10, 2025
b2dd181
Adjust dev utils tests.
Mati365 Jun 10, 2025
e87d060
More utils fixes
Mati365 Jun 10, 2025
7361bb6
More utils fixes
Mati365 Jun 10, 2025
93b2a8f
More utils fixes
Mati365 Jun 10, 2025
2eb8de1
More utils fixes
Mati365 Jun 11, 2025
f74162f
Fix typo.
Mati365 Jun 11, 2025
ca1a18d
Fix tests.
Mati365 Jun 11, 2025
9bdbd26
Fix tests.
Mati365 Jun 11, 2025
536e926
Fix tests.
Mati365 Jun 11, 2025
22214c2
Fix tests.
Mati365 Jun 11, 2025
8a290c9
Rename model document selection.
Mati365 Jun 11, 2025
6e07c1b
Add `DocumentFragment` renames.
Mati365 Jun 11, 2025
0cfef67
More renames
Mati365 Jun 11, 2025
0a5a9b1
Rename fixes
Mati365 Jun 11, 2025
de09a20
Rename model element references.
Mati365 Jun 11, 2025
42f4632
Fix rename
Mati365 Jun 11, 2025
7c77f81
Rename remain places
Mati365 Jun 11, 2025
a68c39b
Rename remain places
Mati365 Jun 11, 2025
0849b38
Fix imports.
Mati365 Jun 11, 2025
043dd57
Rename `Item` to `ModelItem`
Mati365 Jun 11, 2025
84e5aa3
Adjust docs.
Mati365 Jun 11, 2025
de56f88
Rename `LivePosition` -> `ModelLivePosition`.
Mati365 Jun 11, 2025
5fe80a1
Export `ModelLivePositionChangeEvent`.
Mati365 Jun 11, 2025
513e8f0
Rename `LiveRange` to `ModelLiveRange`.
Mati365 Jun 11, 2025
b36e0a5
Rename `LiveRangeChangeRangeEvent` to `ModelLiveRangeChangeRangeEvent`.
Mati365 Jun 11, 2025
25dd2cf
Rename `LiveRangeChangeContentEvent`.
Mati365 Jun 11, 2025
ab2b1e2
Export `ModelLiveRangeChangeEvent`.
Mati365 Jun 11, 2025
7926752
Re-export marker things
Mati365 Jun 11, 2025
31c25f8
Rename `Node` -> `ModelNode`.
Mati365 Jun 11, 2025
b791003
Rename `NodeAttributes` to `ModelNodeAttributes`.
Mati365 Jun 11, 2025
77d37eb
Rename `Marker` type.
Mati365 Jun 11, 2025
591a753
Re-export `ModelNodeList`.
Mati365 Jun 11, 2025
e5ac4c8
Fix tests.
Mati365 Jun 11, 2025
828f323
Adjust node typings in tests.
Mati365 Jun 11, 2025
778689f
Rename `transformSets`.
Mati365 Jun 12, 2025
6f68299
Operation re-exports
Mati365 Jun 12, 2025
5e18049
Rename `ModelPosition`
Mati365 Jun 12, 2025
e2ba8fd
Add model position typings exports.
Mati365 Jun 12, 2025
5324099
Rename `Range` -> `ModelRange`.
Mati365 Jun 12, 2025
11dec03
Merge branch 'master' into ck/18590-engine
Mati365 Jun 12, 2025
33ef12d
Adjust exports.
Mati365 Jun 12, 2025
f8b27c1
Rename `RootElement` -> `ModelRootElement`.
Mati365 Jun 12, 2025
7412d98
Rename `Schema` -> `ModelSchema`.
Mati365 Jun 12, 2025
576d3a7
Fix compiler errors
Mati365 Jun 12, 2025
5fdced3
Fix compiler errors
Mati365 Jun 12, 2025
3fc2112
Export `ModelSchemaItemDefinition`.
Mati365 Jun 12, 2025
2c99ba5
Rename `SchemaCompiledItemDefinition` to `ModelSchemaCompiledItemDefi…
Mati365 Jun 12, 2025
39fe980
Rename `SchemaContext` to `ModelSchemaContext`.
Mati365 Jun 12, 2025
c2e14df
Add rename for `ModelSchemaChildCheckCallback`.
Mati365 Jun 12, 2025
d5e6e0d
Rename `ModelSelection`.
Mati365 Jun 12, 2025
2ac0ccb
Fix compiler errors
Mati365 Jun 12, 2025
7739e4d
Rename `Text` to `ModelText`.
Mati365 Jun 12, 2025
432f191
Fix compiler errors
Mati365 Jun 12, 2025
91a1432
Rename `TextProxy` to `ModelTextProxy`.
Mati365 Jun 12, 2025
5a43779
Rename `ModelTreeWalker`.
Mati365 Jun 12, 2025
1a4aa27
Re-export `ModelTypeCheckable`.
Mati365 Jun 12, 2025
e234afa
Rename `Writer` to `ModelWriter`.
Mati365 Jun 12, 2025
9203424
Rename `AttributeElement` -> `ViewAttributeElement`.
Mati365 Jun 12, 2025
de25582
Rename `ContainerElement` to `ViewContainerElement`.
Mati365 Jun 12, 2025
2ded298
Rename `ContainerElement` to `ViewContainerElement`.
Mati365 Jun 12, 2025
747bda5
Rename `DataTransfer` -> `ViewDataTransfer`.
Mati365 Jun 12, 2025
c926fc7
Re-export data transfer typings.
Mati365 Jun 12, 2025
41b24b7
Rename view document.
Mati365 Jun 12, 2025
ecaa45b
Fix manual
Mati365 Jun 12, 2025
3807aa9
Export more view things.
Mati365 Jun 12, 2025
938dedc
`DocumentFragment` -> `ViewDocumentFragment`.
Mati365 Jun 12, 2025
c6be0db
Add `ViewDocumentSelection` re-exports.
Mati365 Jun 12, 2025
cf29f1a
`DomConverter` -> `ViewDomConverter`.
Mati365 Jun 12, 2025
2000522
Adjust imports.
Mati365 Jun 12, 2025
c43120e
Fix tests.
Mati365 Jun 12, 2025
837e5f3
Rename `DowncastWriter` -> `ViewDowncastWriter`.
Mati365 Jun 12, 2025
be74919
Fix imports.
Mati365 Jun 12, 2025
1ede7e9
`EditableElement` -> `ViewEditableElement`.
Mati365 Jun 12, 2025
cbc25b1
`Element` -> `ViewElement`.
Mati365 Jun 12, 2025
14e32c0
Rename more view typings.
Mati365 Jun 12, 2025
c4c34aa
Rename `Item` -> `ViewItem`.
Mati365 Jun 12, 2025
dc0b2f1
Export matcher things.
Mati365 Jun 12, 2025
a5d7af4
Export `Node` as `ViewNode`.
Mati365 Jun 12, 2025
e398f18
Export `ViewNodeChangeEvent`.
Mati365 Jun 12, 2025
8108961
Export bubbling event info
Mati365 Jun 12, 2025
d7dae38
Export observers.
Mati365 Jun 12, 2025
1987da9
Export more observers
Mati365 Jun 12, 2025
921d9bb
Fix imports.
Mati365 Jun 12, 2025
8bcbd82
Fix mention tests.
Mati365 Jun 13, 2025
5840648
Merge branch 'master' into ck/18590-engine
Mati365 Jun 13, 2025
fb46744
Fix whitespace tests.
Mati365 Jun 13, 2025
8af2ef8
Merge branch 'master' into ck/18590-engine
Mati365 Jun 13, 2025
0b7ae9c
Rename observers
Mati365 Jun 13, 2025
3b08275
Rename placeholder helpers.
Mati365 Jun 13, 2025
f937d95
Fix docs.
Mati365 Jun 13, 2025
431f1d7
Rename `Position` -> `ViewPosition`.
Mati365 Jun 13, 2025
f896108
Adjust imports
Mati365 Jun 13, 2025
e6d65fd
`RawElement` -> `ViewRawElement`.
Mati365 Jun 13, 2025
5ac1c6e
`Renderer` -> `ViewRenderer`.
Mati365 Jun 13, 2025
4c455b4
`RootEditableElement` -> `ViewRootEditableElement`.
Mati365 Jun 13, 2025
75b164d
`Selection` -> `ViewSelection`.
Mati365 Jun 13, 2025
b1ca777
Adjust imports.
Mati365 Jun 13, 2025
62ce00e
Adjust styles functions.
Mati365 Jun 13, 2025
bc91051
Export style asserations
Mati365 Jun 13, 2025
049ebcb
More utils re-exports.
Mati365 Jun 13, 2025
d34a752
Merge branch 'master' into ck/18590-engine
Mati365 Jun 13, 2025
31a1883
Fix imports.
Mati365 Jun 13, 2025
af356eb
BoxStyles rename
Mati365 Jun 13, 2025
4bdacc0
Rename styles types.
Mati365 Jun 13, 2025
28bb3d9
Rename `Text` -> `ViewText`.
Mati365 Jun 13, 2025
fce6801
Rename `TextProxy` -> `ViewTextProxy`.
Mati365 Jun 13, 2025
1c2e344
Rename `TokenList` -> `ViewTokenList`.
Mati365 Jun 13, 2025
5855d2f
Rename `TreeWalker` -> `ViewTreeWalker`.
Mati365 Jun 13, 2025
ee0525c
Rename `TypeCheckable` -> `ViewTypeCheckable`.
Mati365 Jun 13, 2025
55baf75
Rename `UIElement` -> `ViewUIElement`.
Mati365 Jun 13, 2025
3248479
`UpcastWriter` -> `ViewUpcastWriter`.
Mati365 Jun 13, 2025
ff4f493
Export more view typings.
Mati365 Jun 13, 2025
e16ee5e
Merge branch 'master' into ck/18590-engine
Mati365 Jun 13, 2025
3aa66bf
Export more view typings.
Mati365 Jun 13, 2025
56526e7
Fix imports
Mati365 Jun 13, 2025
f19f8c2
Fix imports
Mati365 Jun 13, 2025
4ba9fd8
Merge branch 'master' into ck/18590-engine
Mati365 Jun 13, 2025
6338803
Fix imports
Mati365 Jun 13, 2025
f87385c
Fix imports
Mati365 Jun 13, 2025
515666d
Adjust events jsdocs.
Mati365 Jun 13, 2025
d5dd3cc
Merge branch 'master' into ck/18590-engine
Mati365 Jun 13, 2025
ea04c4d
Fix events.
Mati365 Jun 13, 2025
3344271
Add logger
Mati365 Jun 13, 2025
2f2b47a
Fix links.
Mati365 Jun 13, 2025
336cc13
Fix more links.
Mati365 Jun 13, 2025
bb5f111
Fix docs.
Mati365 Jun 16, 2025
c7859e8
Adjust export.
Mati365 Jun 16, 2025
3033e6d
Merge branch 'master' into ck/18590-engine
Mati365 Jun 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion docs/framework/architecture/core-editor-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ refresh() {
}
```

This method is called automatically (by the command itself) when {@link module:engine/model/document~Document#event:change any changes are applied to the model}. This means that the command automatically refreshes its own state when anything changes in the editor.
This method is called automatically (by the command itself) when {@link module:engine/model/document~ModelDocument#event:change any changes are applied to the model}. This means that the command automatically refreshes its own state when anything changes in the editor.

The important thing about commands is that every change in their state as well as calling the `execute()` method fire events. Some examples of these are {@link module:core/command~Command#event-set:{property} `#set:value`} and {@link module:core/command~Command#event-change:{property} `#change:value`} when you change the `#value` property and {@link module:core/command~Command#event:execute `#execute`} when you execute the command.

Expand Down
46 changes: 23 additions & 23 deletions docs/framework/architecture/editing-engine.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/framework/architecture/ui-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ editor.plugins.get( 'Dialog' ).view.updatePosition();

### Best practices

For the best user experience, the editing view should get {@link module:engine/view/view~View#focus focused} upon any user action (like executing a command) to make sure the editor retains focus:
For the best user experience, the editing view should get {@link module:engine/view/view~EditingView#focus focused} upon any user action (like executing a command) to make sure the editor retains focus:

```js
// Execute some action on the "dropdown#execute" event.
Expand Down
4 changes: 2 additions & 2 deletions docs/framework/contributing/testing-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ expect(

#### `attribute`

Asserts that the target has an attribute with the given key name. See {@link module:engine/model/documentselection~DocumentSelection#hasAttribute hasAttribute}.
Asserts that the target has an attribute with the given key name. See {@link module:engine/model/documentselection~ModelDocumentSelection#hasAttribute hasAttribute}.

```js
expect( selection ).to.have.attribute( 'linkHref' );
```

When an optional `value` is provided, `.attribute` also asserts that the attribute's value is equal to the given `value`. See {@link module:engine/model/documentselection~DocumentSelection#getAttribute getAttribute}.
When an optional `value` is provided, `.attribute` also asserts that the attribute's value is equal to the given `value`. See {@link module:engine/model/documentselection~ModelDocumentSelection#getAttribute getAttribute}.

```js
expect( selection ).to.have.attribute( 'linkHref', 'example.com' );
Expand Down
6 changes: 3 additions & 3 deletions docs/framework/custom-editor-creator.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ The `*EditorUI` class is the main UI class that initializes UI components (the m

<code-switcher>
```js
import { EditorUI, enablePlaceholder } from 'ckeditor5';
import { EditorUI, enableViewPlaceholder } from 'ckeditor5';

/**
* The multi-root editor UI class.
Expand Down Expand Up @@ -281,7 +281,7 @@ class MultirootEditorUI extends EditorUI {
if ( placeholderText ) {
editingRoot.placeholder = placeholderText;

enablePlaceholder( {
enableViewPlaceholder( {
view: editingView,
element: editingRoot,
isDirectHost: false,
Expand Down Expand Up @@ -313,7 +313,7 @@ class MultirootEditorUIView extends EditorUIView {
* Creates an instance of the multi-root editor UI view.
*
* @param {module:utils/locale~Locale} locale The {@link module:core/editor/editor~Editor#locale} instance.
* @param {module:engine/view/view~View} editingView The editing view instance this view is related to.
* @param {module:engine/view/view~EditingView} editingView The editing view instance this view is related to.
* @param {Object.<String,HTMLElement>} editableElements The list of editable elements, containing name and html element
* for each editable.
*/
Expand Down
8 changes: 4 additions & 4 deletions docs/framework/development-tools/testing-helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ modified_at: 2022-08-16

# Testing helpers

The `getData()` and `setData()` functions exposed by {@link module:engine/dev-utils/model model developer utilities} and {@link module:engine/dev-utils/view view developer utilities} are useful development helpers.
The `_getModelData()` and `_setModelData()` functions exposed by {@link module:engine/dev-utils/model model developer utilities} and {@link module:engine/dev-utils/view view developer utilities} are useful development helpers.

They allow for "stringifying" the {@link framework/architecture/editing-engine#model model} and {@link framework/architecture/editing-engine#view view} structures, selections, ranges, and positions as well as for loading them from a string. They are often used when writing tests.

<info-box>
Both tools are designed for prototyping, debugging, and testing purposes. Do not use them in production-grade code.
</info-box>

For instance, to take a peek at the editor model, you could use the {@link module:engine/dev-utils/model~getData `getData()`} helper:
For instance, to take a peek at the editor model, you could use the {@link module:engine/dev-utils/model~_getModelData `_getModelData()`} helper:

<code-switcher>
```js
Expand All @@ -28,10 +28,10 @@ import { _getModelData } from 'ckeditor5';
ClassicEditor
.create( '<p>Hello <b>world</b>!</p>' )
.then( editor => {
console.log( getData( editor.model ) );
console.log( _getModelData( editor.model ) );
// -> '<paragraph>[]Hello <$text bold="true">world</$text>!</paragraph>'
} );
```
</code-switcher>

See the {@link module:engine/dev-utils/model~getData helper documentation} to learn more about useful options.
See the {@link module:engine/dev-utils/model~_getModelData helper documentation} to learn more about useful options.
6 changes: 3 additions & 3 deletions docs/framework/how-tos.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Learn more about {@link getting-started/advanced/integrating-from-source-webpack

### How to add an attribute to the editor editable in DOM?

If you have a reference to the editor instance, use the {@link framework/architecture/editing-engine#changing-the-view `change()`} method of the view and set the new attribute via the {@link module:engine/view/downcastwriter~DowncastWriter view downcast writer}:
If you have a reference to the editor instance, use the {@link framework/architecture/editing-engine#changing-the-view `change()`} method of the view and set the new attribute via the {@link module:engine/view/downcastwriter~ViewDowncastWriter view downcast writer}:

```js
editor.editing.view.change( writer => {
Expand Down Expand Up @@ -157,9 +157,9 @@ editor.model.change( writer => {
} );
```

You may have noticed that a link is represented as a text with an attribute in the editor model. See the API of the {@link module:engine/model/writer~Writer model writer} to learn about other useful methods that can help you modify the editor model. {@link module:engine/model/model~Model#insertContent model.insertContent} will ensure that the content can be inserted to the selected place according to the schema.
You may have noticed that a link is represented as a text with an attribute in the editor model. See the API of the {@link module:engine/model/writer~ModelWriter model writer} to learn about other useful methods that can help you modify the editor model. {@link module:engine/model/model~Model#insertContent model.insertContent} will ensure that the content can be inserted to the selected place according to the schema.

To insert some longer HTML code, you can parse it to the {@link module:engine/model/documentfragment~DocumentFragment model fragment} first and then {@link module:engine/model/model~Model#insertContent insert} it into the editor model:
To insert some longer HTML code, you can parse it to the {@link module:engine/model/documentfragment~ModelDocumentFragment model fragment} first and then {@link module:engine/model/model~Model#insertContent insert} it into the editor model:

```js
const content =
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started/integrations-cdn/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Note that this method might be called multiple times. Apart from initialization,

### `change`

Fired when the content of the editor has changed. It corresponds with the {@link module:engine/model/document~Document#event:change:data `editor.model.document#change:data`} event.
Fired when the content of the editor has changed. It corresponds with the {@link module:engine/model/document~ModelDocument#event:change:data `editor.model.document#change:data`} event.
It is fired with an object containing the editor and the CKEditor&nbsp;5 `change:data` event object.

```html
Expand Down Expand Up @@ -328,12 +328,12 @@ export class MyComponent {

### `blur`

Fired when the editing view of the editor is blurred. It corresponds with the {@link module:engine/view/document~Document#event:blur `editor.editing.view.document#blur`} event.
Fired when the editing view of the editor is blurred. It corresponds with the {@link module:engine/view/document~ViewDocument#event:blur `editor.editing.view.document#blur`} event.
It is fired with an object containing the editor and the CKEditor&nbsp;5 `blur` event data.

### `focus`

Fired when the editing view of the editor is focused. It corresponds with the {@link module:engine/view/document~Document#event:focus `editor.editing.view.document#focus`} event.
Fired when the editing view of the editor is focused. It corresponds with the {@link module:engine/view/document~ViewDocument#event:focus `editor.editing.view.document#focus`} event.
It is fired with an object containing the editor and the CKEditor&nbsp;5 `focus` event data.

### `error`
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started/integrations-cdn/react-default-cdn.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ The `<CKEditor>` component supports the following properties:
* `watchdogConfig` &ndash; {@link module:watchdog/watchdog~WatchdogConfig Configuration object} for the [watchdog feature](https://ckeditor.com/docs/ckeditor5/latest/features/watchdog.html).
* `onReady` &ndash; A function called when the editor is ready with an {@link module:core/editor/editor~Editor `editor`} instance. This callback is also called after the reinitialization of the component if an error occurred.
* `onAfterDestroy` &ndash; A function called after the successful destruction of an editor instance rendered by the component. This callback is also triggered after the editor has been reinitialized after an error. The component is not guaranteed to be mounted when this function is called.
* `onChange` &ndash; A function called when the editor data has changed. See the {@link module:engine/model/document~Document#event:change:data `editor.model.document#change:data`} event.
* `onBlur` &ndash; A function called when the editor was blurred. See the {@link module:engine/view/document~Document#event:blur `editor.editing.view.document#blur`} event.
* `onFocus` &ndash; A function called when the editor was focused. See the {@link module:engine/view/document~Document#event:focus `editor.editing.view.document#focus`} event.
* `onChange` &ndash; A function called when the editor data has changed. See the {@link module:engine/model/document~ModelDocument#event:change:data `editor.model.document#change:data`} event.
* `onBlur` &ndash; A function called when the editor was blurred. See the {@link module:engine/view/document~ViewDocument#event:blur `editor.editing.view.document#blur`} event.
* `onFocus` &ndash; A function called when the editor was focused. See the {@link module:engine/view/document~ViewDocument#event:focus `editor.editing.view.document#focus`} event.
* `onError` &ndash; A function called when the editor has crashed during the initialization or during the runtime. It receives two arguments: the error instance and the error details. Error details is an object that contains two properties:
* `phase`: `'initialization'|'runtime'` &ndash; Informs when the error has occurred (during or after the editor/context initialization).
* `willEditorRestart` &ndash; When `true`, it means the editor component will restart itself.
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started/integrations-cdn/react-multiroot-cdn.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ The `useMultiRootEditor` hook supports the following properties:
* `isLayoutReady: Boolean` &ndash; A property that delays the editor creation when set to `false`. It starts the initialization of the multi-root editor when sets to `true`. Useful when the CKEditor&nbsp;5 annotations or a presence list are used.
* `disableTwoWayDataBinding: Boolean` &ndash; Allows disabling the two-way data binding mechanism between the editor state and `data` object to improve editor efficiency. The default value is `false`.
* `onReady: Function` &ndash; It is called when the editor is ready with a {@link module:editor-multi-root/multirooteditor~MultiRootEditor `MultiRootEditor`} instance. This callback is also called after the reinitialization of the component if an error occurred.
* `onChange: Function` &ndash; It is called when the editor data has changed. See the {@link module:engine/model/document~Document#event:change:data `editor.model.document#change:data`} event.
* `onBlur: Function` &ndash; It is called when the editor was blurred. See the {@link module:engine/view/document~Document#event:blur `editor.editing.view.document#blur`} event.
* `onFocus: Function` &ndash; It is called when the editor was focused. See the {@link module:engine/view/document~Document#event:focus `editor.editing.view.document#focus`} event.
* `onChange: Function` &ndash; It is called when the editor data has changed. See the {@link module:engine/model/document~ModelDocument#event:change:data `editor.model.document#change:data`} event.
* `onBlur: Function` &ndash; It is called when the editor was blurred. See the {@link module:engine/view/document~ViewDocument#event:blur `editor.editing.view.document#blur`} event.
* `onFocus: Function` &ndash; It is called when the editor was focused. See the {@link module:engine/view/document~ViewDocument#event:focus `editor.editing.view.document#focus`} event.
* `onError: Function` &ndash; It is called when the editor has crashed during the initialization or during the runtime. It receives two arguments: the error instance and the error details.
Error details is an object that contains two properties:
* `phase: 'initialization'|'runtime'` &ndash; Informs when an error has occurred (during the editor or context initialization, or after the initialization).
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started/integrations-cdn/vuejs-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,23 +274,23 @@ Corresponds to the {@link module:core/editor/editor~Editor#event:ready `ready`}

### `focus`

Corresponds to the {@link module:engine/view/document~Document#event:focus `focus`} editor event.
Corresponds to the {@link module:engine/view/document~ViewDocument#event:focus `focus`} editor event.

```html
<ckeditor :editor="editor" @focus="onEditorFocus" />
```

### `blur`

Corresponds to the {@link module:engine/view/document~Document#event:blur `blur`} editor event.
Corresponds to the {@link module:engine/view/document~ViewDocument#event:blur `blur`} editor event.

```html
<ckeditor :editor="editor" @blur="onEditorBlur" />
```

### `input`

Corresponds to the {@link module:engine/model/document~Document#event:change:data `change:data`} editor event. See the [`v-model` directive](#v-model) to learn more.
Corresponds to the {@link module:engine/model/document~ModelDocument#event:change:data `change:data`} editor event. See the [`v-model` directive](#v-model) to learn more.

```html
<ckeditor :editor="editor" @input="onEditorInput" />
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started/integrations-cdn/vuejs-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,23 +260,23 @@ Corresponds to the {@link module:core/editor/editor~Editor#event:ready `ready`}

### `focus`

Corresponds to the {@link module:engine/view/document~Document#event:focus `focus`} editor event.
Corresponds to the {@link module:engine/view/document~ViewDocument#event:focus `focus`} editor event.

```html
<ckeditor :editor="editor" @focus="onEditorFocus" />
```

### `blur`

Corresponds to the {@link module:engine/view/document~Document#event:blur `blur`} editor event.
Corresponds to the {@link module:engine/view/document~ViewDocument#event:blur `blur`} editor event.

```html
<ckeditor :editor="editor" @blur="onEditorBlur" />
```

### `input`

Corresponds to the {@link module:engine/model/document~Document#event:change:data `change:data`} editor event.
Corresponds to the {@link module:engine/model/document~ModelDocument#event:change:data `change:data`} editor event.

```html
<ckeditor :editor="editor" @input="onEditorInput" />
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started/integrations/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ Note that this method might be called multiple times. Apart from initialization,

### `change`

Fired when the content of the editor has changed. It corresponds with the {@link module:engine/model/document~Document#event:change:data `editor.model.document#change:data`} event.
Fired when the content of the editor has changed. It corresponds with the {@link module:engine/model/document~ModelDocument#event:change:data `editor.model.document#change:data`} event.
It is fired with an object containing the editor and the CKEditor&nbsp;5 `change:data` event object.

```html
Expand Down Expand Up @@ -363,12 +363,12 @@ export class MyComponent {

### `blur`

Fired when the editing view of the editor is blurred. It corresponds with the {@link module:engine/view/document~Document#event:blur `editor.editing.view.document#blur`} event.
Fired when the editing view of the editor is blurred. It corresponds with the {@link module:engine/view/document~ViewDocument#event:blur `editor.editing.view.document#blur`} event.
It is fired with an object containing the editor and the CKEditor&nbsp;5 `blur` event data.

### `focus`

Fired when the editing view of the editor is focused. It corresponds with the {@link module:engine/view/document~Document#event:focus `editor.editing.view.document#focus`} event.
Fired when the editing view of the editor is focused. It corresponds with the {@link module:engine/view/document~ViewDocument#event:focus `editor.editing.view.document#focus`} event.
It is fired with an object containing the editor and the CKEditor&nbsp;5 `focus` event data.

### `error`
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started/integrations/react-default-npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ The `<CKEditor>` component supports the following properties:
* `watchdogConfig` &ndash; {@link module:watchdog/watchdog~WatchdogConfig Configuration object} for the [watchdog feature](https://ckeditor.com/docs/ckeditor5/latest/features/watchdog.html).
* `onReady` &ndash; A function called when the editor is ready with an {@link module:core/editor/editor~Editor `editor`} instance. This callback is also called after the reinitialization of the component if an error occurred.
* `onAfterDestroy` &ndash; A function called after the successful destruction of an editor instance rendered by the component. This callback is also triggered after the editor has been reinitialized after an error. The component is not guaranteed to be mounted when this function is called.
* `onChange` &ndash; A function called when the editor data has changed. See the {@link module:engine/model/document~Document#event:change:data `editor.model.document#change:data`} event.
* `onBlur` &ndash; A function called when the editor was blurred. See the {@link module:engine/view/document~Document#event:blur `editor.editing.view.document#blur`} event.
* `onFocus` &ndash; A function called when the editor was focused. See the {@link module:engine/view/document~Document#event:focus `editor.editing.view.document#focus`} event.
* `onChange` &ndash; A function called when the editor data has changed. See the {@link module:engine/model/document~ModelDocument#event:change:data `editor.model.document#change:data`} event.
* `onBlur` &ndash; A function called when the editor was blurred. See the {@link module:engine/view/document~ViewDocument#event:blur `editor.editing.view.document#blur`} event.
* `onFocus` &ndash; A function called when the editor was focused. See the {@link module:engine/view/document~ViewDocument#event:focus `editor.editing.view.document#focus`} event.
* `onError` &ndash; A function called when the editor has crashed during the initialization or during the runtime. It receives two arguments: the error instance and the error details. Error details is an object that contains two properties:
* `{String} phase`: `'initialization'|'runtime'` &ndash; Informs when the error has occurred (during the editor or context initialization, or after the initialization).
* `{Boolean} willEditorRestart` &ndash; When `true`, it means that the editor component will restart itself.
Expand Down
Loading
Loading