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

fix: LPS-165655 Disable tab key by default to avoid the focus to be t… #202

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

victorg1991
Copy link
Member

@victorg1991 victorg1991 commented Oct 25, 2022

…rapped in the editor

Also, user can press CTRL + M to enable tabs in the editor.

This is the same solution we used to fix other similar cases: https://issues.liferay.com/browse/LPS-164875

: editor.lang.codemirror.enableTabKeyUsing;

var html =
'<div class="keyboard-message popover px-2 py-1" style="left:auto; right: 4px; top:4px">';
Copy link
Member

Choose a reason for hiding this comment

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

This introduces some clay-css dependencies, whick may not be available in all cases when using the editor in non-admin contexts. The bigger issue seems with the popover class as it defines the zindex and positioning.

Probably with some inlining this can be worked around

Copy link
Member

@dsanz dsanz Oct 26, 2022

Choose a reason for hiding this comment

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

I'm merging this with the commitment of coming back and:

  • review styling, as per the dependency with clay-css
  • review solution design as the popover overlaps the editable area, as implemened in other codemirrors across DXP
  • translate the messages as well

cc/ @markocikos @tinycarol

@dsanz dsanz merged commit edfeebb into liferay:master Oct 26, 2022
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