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

[IME+Android] The MutationObserver should not break text nodes. #16300

Open
wants to merge 20 commits into
base: ck/epic/ime-typing
Choose a base branch
from

Conversation

niegowski
Copy link
Contributor

@niegowski niegowski commented Apr 29, 2024

Suggested merge commit message (convention)

Fix (engine, typing): Typing on Android should avoid modifying DOM while composing. Closes #13994. Closes #14707. Closes #13850.


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

@niegowski niegowski marked this pull request as ready for review May 22, 2024 16:25
Copy link
Contributor

@mmotyczynska mmotyczynska 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.

* by default in all editor instances (attached by {@link module:engine/view/view~View}).
*
* @eventName module:engine/view/document~Document#mutations
* @param data Event data containing detailed information about the event.
Copy link
Contributor

Choose a reason for hiding this comment

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

data is not available below.

Comment on lines +296 to +306
export type MutationsEventData = {
mutations: Array<MutationData>;
};

/**
* A single entry in {@link ~MutationsEventData} mutations array.
*/
export type MutationData = {
type: ChangeType;
node: ViewNode;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing field description.

// @if CK_DEBUG_TYPING // console.info( '%c[Renderer]%c Rendering aborted while isComposing',
// @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', ''
// @if CK_DEBUG_TYPING // console.info( '%c[Renderer]%c Rendering aborted while isComposing.',
// @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', 'font-style: italic'
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// @if CK_DEBUG_TYPING // 'color: green;font-weight: bold', 'font-style: italic'
// @if CK_DEBUG_TYPING // 'color: green; font-weight: bold', 'font-style: italic'

And below.

Comment on lines +237 to +238
// At this point we have "dirty DOM" (changed) and de-synched view (which has not been changed).
// In order to "reset DOM" we render the view again.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this can be adjusted.

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.

None yet

2 participants