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

#7997: Migrated Input and Delete features to beforeinput #8176

Merged
merged 89 commits into from
Oct 6, 2020

Conversation

oleq
Copy link
Member

@oleq oleq commented Sep 28, 2020

Suggested merge commit message (convention)

Feature: Migrated Input, Delete, and Enter features to the beforeinput event. Closes #7997. Closes #7998. Closes #7999.

BREAKING CHANGE (engine): The MutationObserver may no longer be loaded by the editing view. In web browsers that support DOM Input Events, its responsibilities have been taken over by InputObserver.

BREAKING CHANGE (engine): The mutations event is no longer fired by the view document in web browsers that support DOM Input Events. To react to low-level changes in the document, use the beforeinput event instead, or better yet, take advantage of delete and insertText events.

BREAKING CHANGE (typing): The InputCommand has been deprecated. Use the InsertTextCommand instead (editor.execute( 'insertText', options )).

BREAKING CHANGE (typing): The @ckeditor/ckeditor5-typing/src/utils/injectunsafekeystrokeshandling module containing typing helpers (e.g. isNonTypingKeystroke()) is now available under @ckeditor/ckeditor5-typing/src/utils/input/utils. Please update import paths in your projects to avoid import errors.

…d links because beforeinput does not supply it. Used the "direction" property instead.
…ations to separate helpers. Code refactoring.
@oleq oleq marked this pull request as ready for review September 29, 2020 14:05
@oleq oleq requested a review from niegowski September 29, 2020 14:07
Copy link
Contributor

@niegowski niegowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial review

packages/ckeditor5-enter/src/enterobserver.js Outdated Show resolved Hide resolved
packages/ckeditor5-enter/src/enterobserver.js Outdated Show resolved Hide resolved
packages/ckeditor5-enter/src/enterobserver.js Outdated Show resolved Hide resolved
packages/ckeditor5-enter/src/enterobserver.js Outdated Show resolved Hide resolved
packages/ckeditor5-enter/src/enterobserver.js Show resolved Hide resolved
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.

2 participants