Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Migrate to before̬̜input͎ #11456

Merged
merged 155 commits into from
Oct 13, 2022
Merged

Conversation

oleq
Copy link
Member

@oleq oleq commented Mar 11, 2022

Suggested merge commit message (convention)

Feature (engine, enter, typing): Typing and text composition (IME) support refactored to use beforeInput DOM events instead of DOM mutations and keystrokes. Closes #11438.

Other (typing): Introduced a new insertText event mapped from a subset of beforeInput events.

Other (typing): The delete event is now mapped from a subset of beforeInput events.

Other (enter): The enter event is now mapped from a subset of beforeInput events.

Fix (engine): Fixed conversion of the non-collapsed selection anchored between <br> elements (in Safari).

MINOR BREAKING CHANGE (clipboard): The DataTransfer class was moved to the engine package.

MINOR BREAKING CHANGE: The input command is now deprecated, you should use insertText command instead.

oleq and others added 30 commits March 9, 2022 14:43
…always called in plugins, never in observers).
… by ClipboardObserver + DeleteObserver does not act on keydown any longer.
@niegowski niegowski marked this pull request as ready for review October 13, 2022 09:39
niegowski and others added 2 commits October 13, 2022 12:16
# Conflicts:
#	packages/ckeditor5-engine/src/view/observer/mutationobserver.ts
#	packages/ckeditor5-engine/src/view/renderer.ts
@arkflpc arkflpc self-requested a review October 13, 2022 10:31
packages/ckeditor5-engine/src/view/datatransfer.ts Outdated Show resolved Hide resolved
packages/ckeditor5-engine/src/view/view.ts Outdated Show resolved Hide resolved
packages/ckeditor5-engine/tests/view/view/view.js Outdated Show resolved Hide resolved
@niegowski niegowski merged commit a930fef into master Oct 13, 2022
@niegowski niegowski deleted the ck/epic/11438-migrate-to-beforeinput branch October 13, 2022 11:59
@niegowski
Copy link
Contributor

MINOR BREAKING CHANGE: The input command is now deprecated, you should use insertText command instead.

To give some more background. This PR is changing the input flow, so the editor is now using the beforeInput events instead of DOM mutation-based input. The previous command (input) is still available as an alias and the same options should be accepted by both commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to beforeInput vol 2
7 participants