Skip to content

TinyMCE4 hard to input double byte characters on chrome #25454

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

Conversation

HirokazuNishi
Copy link
Contributor

Description (*)

As @Consumewithadele described on #24637, Magento2.3 with TinyMCE4 has serious issue on Chrome and double byte characters. This fix aims to be able to work the feature as expected on Chrome.

Fixed Issues (if relevant)

  1. Chinese input in tinymce 4 #24637: Chinese input in tinymce 4

Manual testing scenarios (*)

  1. Open Magento admin panel via Google Chrome.
  2. Create new cms page
  3. Turn on Google IME or MS-IME (or others)
  4. Input double byte characters
  5. Insert widgets and continue typing

Questions or comments

fixRangeSelection function was added for fixing Page Builder related issue. Even though remove the code, Page Builder works as expected. Is this function still needed?

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@HirokazuNishi HirokazuNishi requested a review from DrewML as a code owner November 4, 2019 05:30
@m2-assistant
Copy link

m2-assistant bot commented Nov 4, 2019

Hi @HirokazuNishi. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@krzksz
Copy link
Contributor

krzksz commented Nov 8, 2019

@magento give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @krzksz. Thank you for your request. I'm working on Magento instance for you

@magento-engcom-team
Copy link
Contributor

Hi @krzksz, here is your new Magento instance.
Admin access: https://pr-25454.instances.magento-community.engineering/admin
Login: admin Password: 123123q

Copy link
Contributor

@krzksz krzksz left a comment

Choose a reason for hiding this comment

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

I have tested the changes you did and in fact the issue that was mentioned in #24637 (comment) no longer persists even with this line commented out. In that case it would be best to remove this call and whole fixRangeSelection function from this file instead of commenting it out.

@aleron75 aleron75 self-assigned this Nov 13, 2019
@krzksz
Copy link
Contributor

krzksz commented Dec 1, 2019

Hey @HirokazuNishi, is it possible for you to make the suggested change? Are you still willing to work on this?

@sidolov sidolov changed the base branch from 2.3-develop to 2.4-develop December 5, 2019 17:16
@ghost ghost assigned ihor-sviziev Mar 4, 2020
@ihor-sviziev ihor-sviziev added Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests and removed Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests labels Mar 4, 2020
Copy link
Contributor

@ihor-sviziev ihor-sviziev left a comment

Choose a reason for hiding this comment

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

I believe it will be too hard to cover this case with automation test and author isn’t responding for a long time so I believe he’ll not cover it.
Approving this PR as is

@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev, thank you for the review.
ENGCOM-7045 has been created to process this Pull Request

Copy link
Contributor

@krzksz krzksz left a comment

Choose a reason for hiding this comment

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

Thanks for adjusting it @ihor-sviziev!

@ghost ghost assigned krzksz Mar 5, 2020
@magento-engcom-team
Copy link
Contributor

Hi @krzksz, thank you for the review.
ENGCOM-7045 has been created to process this Pull Request

@engcom-Alfa engcom-Alfa self-assigned this Mar 5, 2020
@engcom-Alfa
Copy link
Contributor

engcom-Alfa commented Mar 6, 2020

✔️ QA Passed

Before:
before

After:
after

@m2-assistant
Copy link

m2-assistant bot commented Mar 12, 2020

Hi @HirokazuNishi, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@sdzhepa sdzhepa mentioned this pull request May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Lib/Frontend Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests Award: bug fix Partner: Veriteworks partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants