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

Various issues with IME #3088

Closed
Reinmar opened this issue Mar 29, 2017 · 12 comments
Closed

Various issues with IME #3088

Reinmar opened this issue Mar 29, 2017 · 12 comments
Labels
package:typing type:bug This issue reports a buggy (incorrect) behavior.
Milestone

Comments

@Reinmar
Copy link
Member

Reinmar commented Mar 29, 2017

We have already a lot of tickets, but I've been playing with IMEs quite a lot when reviewing #887 and I think that there may be new things here:

1 (Firefox)

mar-29-2017 19-34-46

2 (Firefox)

mar-29-2017 19-32-28

3 (Safari and Chrome)

mar-29-2017 19-30-44

4 (Safari)

mar-29-2017 19-28-56

5 (Chrome)

mar-29-2017 19-25-56

6 (Chrome)

mar-29-2017 19-13-56

@Reinmar
Copy link
Member Author

Reinmar commented Mar 29, 2017

@f1ames, could you check these scenarios – whether they are already reported?

@f1ames
Copy link
Contributor

f1ames commented Mar 30, 2017

The 2nd one (2 (Firefox)) looks familiar, however I could not find the issue, the closest one is #3084, but it might be a different case.
Also the 4th and 5th (4 (Safari) and 5 (Chrome)) one seems similar to a problem we have with composition in non-styled elements. As far as I remember it was fixed by #3082 or another ticket related to selection. But the cause may be different due to additional styling.

Generally, looks like new cases to handle ;)

@Reinmar
Copy link
Member Author

Reinmar commented May 3, 2017

Just stumbled upon 6th case again. This is pretty bad :(

@Mgsy
Copy link
Member

Mgsy commented Oct 2, 2017

Safari

Steps to reproduce

  1. Go to https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/examples/builds/classic-editor.html.
  2. Change the language to spanish.
  3. Select some part of the header and the paragraph.
  4. Press ' few times.

Current result

Text disappears and appears again.

GIF

bug_cke5

Other information

OS: MacOS X
Browser: Safari
Release: 0.11.0

@f1ames
Copy link
Contributor

f1ames commented Feb 27, 2018

Went through all reported issue to see if they are still reproducible:

Issues from https://github.com/ckeditor/ckeditor5-typing/issues/95#issue-217954180

  1. Works fine (both using keyboard and mouse). Only difference is that on Safari inserted character is selected (when inserted via keyboard) - as far as I remember it is a native behaviour:
    feb-27-2018 11-37-44-safari

  2. Works as shown in original gif on Chrome, FF and Safari. Additionally on FF after pressing first ´ you have to press a two times to make it being inserted (first keypress doesn't change anything). Similar to [IME] Composition does not start with first typed character in empty inline style. #3084.

  3. Works in Chrome as shown in an original gif and a little different in Safari:
    feb-27-2018 11-46-19-safari

  4. Composition on Safari just breaks in this case:
    feb-27-2018 11-51-01-safari

  5. Chrome still broken, Safari behaves similar like in previous case (4.) having broken composition, but it inserts two characters instead of one.

  6. Behaves as shown on original gif in Chrome. Different on Firefox:
    feb-27-2018 11-56-30-firefox
    and Safari:
    feb-27-2018 12-03-08-safari

To sum up from this 6 issues, first one (1.) got resolved in the meantime. Rest is still reproducible.

Issue: https://github.com/ckeditor/ckeditor5-typing/issues/95#issuecomment-333519559

Still reproducible.

On Chrome pressing ´ on such selection doesn't insert any character or change the selection. On Safari it behaves as described in the issue.

@f1ames
Copy link
Contributor

f1ames commented Mar 2, 2018

While doing some debugging, discovered that the 2 (Firefox) case from https://github.com/ckeditor/ckeditor5-typing/issues/95#issue-217954180 is caused by the fact of rerendering children during composition.

@f1ames
Copy link
Contributor

f1ames commented Mar 8, 2018

When it comes to 6 (Chrome) issue from the description, it seems that the reason for this is native Chrome issue mentioned here - https://github.com/ckeditor/ckeditor5-engine/issues/898#issuecomment-371509154. When removing inlineFiller Chrome moves selection by the amount of characters which were removed - that's why composition starts in some different place...

This does not happen in Safari and Firefox so there the cause must be different (the behaviour is also different).

@f1ames
Copy link
Contributor

f1ames commented Mar 9, 2018

@f1ames
Copy link
Contributor

f1ames commented May 29, 2018

After first implementation of https://github.com/ckeditor/ckeditor5-engine/issues/1417 I went through above issues once again to see what was fixed:

Both 3 and 5 are connected with typing on the end of the link, so the cause here might be different (probably it can be fixed with the first inline fillers improvement - https://github.com/ckeditor/ckeditor5-engine/issues/1342).

Didn't analysed the last issue in depth, but it seems like mutations are not properly handled and model/view is not updated with typed change so renderer rerenders the DOM to its previous state.

@f1ames
Copy link
Contributor

f1ames commented May 30, 2018

My suggestion is to extract unresolved issues (3 and 5) to a separate ticket as they both concern composition on the end of the link and also the last one (https://github.com/ckeditor/ckeditor5-typing/issues/95#issuecomment-333519559) to another separate ticket.

This way we could close this one together with https://github.com/ckeditor/ckeditor5-engine/issues/1417. Also maintaining tickets with one issue (or few issues but with similar cause) is easier that handling above ticket where we have 7 cases (some already or soon fixed). WDYT @Reinmar ?

@f1ames
Copy link
Contributor

f1ames commented May 30, 2018

@Reinmar
Copy link
Member Author

Reinmar commented Jun 1, 2018

My suggestion is to extract unresolved issues (3 and 5) to a separate ticket as they both concern composition on the end of the link and also the last one (#95 (comment)) to another separate ticket.

This way we could close this one together with ckeditor/ckeditor5-engine#1417. Also maintaining tickets with one issue (or few issues but with similar cause) is easier that handling above ticket where we have 7 cases (some already or soon fixed). WDYT @Reinmar ?

I see I'm late to the party :D But yes, it sounds very good.

@Reinmar Reinmar closed this as completed Nov 6, 2018
@mlewand mlewand transferred this issue from ckeditor/ckeditor5-typing Oct 9, 2019
@mlewand mlewand added this to the iteration 19 milestone Oct 9, 2019
@mlewand mlewand added status:confirmed type:bug This issue reports a buggy (incorrect) behavior. package:typing labels Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:typing type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

4 participants