@ckeditor/ckeditor5-typing
Advanced tools
Comparing version 0.0.0-nightly-20230726.0 to 0.0.0-nightly-20230727.0
{ | ||
"name": "@ckeditor/ckeditor5-typing", | ||
"version": "0.0.0-nightly-20230726.0", | ||
"version": "0.0.0-nightly-20230727.0", | ||
"description": "Typing feature for CKEditor 5.", | ||
@@ -15,5 +15,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20230726.0", | ||
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20230726.0", | ||
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20230726.0", | ||
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20230727.0", | ||
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20230727.0", | ||
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20230727.0", | ||
"lodash-es": "4.17.21" | ||
@@ -20,0 +20,0 @@ }, |
@@ -85,2 +85,3 @@ /** | ||
editor.execute('insertText', insertTextCommandData); | ||
view.scrollToTheSelection(); | ||
}); | ||
@@ -87,0 +88,0 @@ if (env.isAndroid) { |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import { DomEventData, Observer, type View, type ViewDocumentSelection, type ViewRange, type ViewSelection } from '@ckeditor/ckeditor5-engine'; | ||
import { DomEventData, Observer, FocusObserver, type View, type ViewDocumentSelection, type ViewRange, type ViewSelection } from '@ckeditor/ckeditor5-engine'; | ||
/** | ||
@@ -12,2 +12,7 @@ * Text insertion observer introduces the {@link module:engine/view/document~Document#event:insertText} event. | ||
/** | ||
* Instance of the focus observer. Insert text observer calls | ||
* {@link module:engine/view/observer/focusobserver~FocusObserver#flush} to mark the latest focus change as complete. | ||
*/ | ||
readonly focusObserver: FocusObserver; | ||
/** | ||
* @inheritDoc | ||
@@ -14,0 +19,0 @@ */ |
@@ -9,3 +9,3 @@ /** | ||
import { env, EventInfo } from '@ckeditor/ckeditor5-utils'; | ||
import { DomEventData, Observer } from '@ckeditor/ckeditor5-engine'; | ||
import { DomEventData, Observer, FocusObserver } from '@ckeditor/ckeditor5-engine'; | ||
const TYPING_INPUT_TYPES = [ | ||
@@ -32,2 +32,3 @@ // For collapsed range: | ||
super(view); | ||
this.focusObserver = view.getObserver(FocusObserver); | ||
// On Android composition events should immediately be applied to the model. Rendering is not disabled. | ||
@@ -48,2 +49,5 @@ // On non-Android the model is updated only on composition end. | ||
} | ||
// Mark the latest focus change as complete (we are typing in editable after the focus | ||
// so the selection is in the focused element). | ||
this.focusObserver.flush(); | ||
const eventInfo = new EventInfo(viewDocument, 'insertText'); | ||
@@ -50,0 +54,0 @@ viewDocument.fire(eventInfo, new DomEventData(view, domEvent, { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142337
3180
+ Added@ckeditor/ckeditor5-core@0.0.0-nightly-20230727.0(transitive)
+ Added@ckeditor/ckeditor5-engine@0.0.0-nightly-20230727.0(transitive)
+ Added@ckeditor/ckeditor5-utils@0.0.0-nightly-20230727.0(transitive)
- Removed@ckeditor/ckeditor5-core@0.0.0-nightly-20230726.0(transitive)
- Removed@ckeditor/ckeditor5-engine@0.0.0-nightly-20230726.0(transitive)
- Removed@ckeditor/ckeditor5-utils@0.0.0-nightly-20230726.0(transitive)