Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-typing

Package Overview
Dependencies
Maintainers
1
Versions
711
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-typing - npm Package Compare versions

Comparing version 0.0.0-nightly-20230726.0 to 0.0.0-nightly-20230727.0

8

package.json
{
"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, {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc