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

Autogrow plugin causing width of editor's container to be set to 0px #4286

Closed
vbhargavmbis opened this issue Sep 17, 2020 · 5 comments
Closed
Assignees
Labels
core The issue is caused by the editor core code. good first issue Relatively easy to fix. This is a perfect issue if you are willing to create a Pull Request. regression This issue is a regression. status:confirmed An issue confirmed by the development team. type:bug A bug.
Milestone

Comments

@vbhargavmbis
Copy link

vbhargavmbis commented Sep 17, 2020

Type of report

Bug

Provide detailed reproduction steps (if any)

  1. Navigate to CKEditor's autogrow plugin demo site: https://ckeditor.com/docs/ckeditor4/latest/examples/autogrow.html#!/guide/dev_autogrow
  2. Remove border widths from the container div (div with id='cke_editor1')
  3. Click into the editor
  4. Press Enter until the size of the editor grows (at least twice)

Expected result

The length of the editor should increase and the width should not change
Screenshot:
image

Actual result

The width of the container (div with id='cke_editor1') is set to 0px and becomes unusable
Screenshot:
image

Debugging details

Other details

  • Browser: Chrome
  • OS: MacOS Catalina
  • CKEditor version: 4.14.1 and 4.15.0
  • Installed CKEditor plugins: autogrow
@vbhargavmbis vbhargavmbis added the type:bug A bug. label Sep 17, 2020
@f1ames f1ames added core The issue is caused by the editor core code. status:confirmed An issue confirmed by the development team. workload:low regression This issue is a regression. labels Sep 18, 2020
@f1ames
Copy link
Contributor

f1ames commented Sep 18, 2020

Hello @vbhargavmbis, thanks for reporting and such detailed analysis of this issue 👍

@f1ames f1ames closed this as completed Sep 18, 2020
@f1ames f1ames reopened this Sep 18, 2020
@f1ames f1ames added the good first issue Relatively easy to fix. This is a perfect issue if you are willing to create a Pull Request. label Sep 18, 2020
@Codewow
Copy link

Codewow commented Sep 27, 2020

This might not need to be said, but this likely also affects the resizer arrow in bottom right if enabled. I am having this exact issue when attempting to use the resizer arrow to extend the height. I do not have the autoGrow plugin, however.

@f1ames
Copy link
Contributor

f1ames commented Oct 7, 2020

This might not need to be said, but this likely also affects the resizer arrow in bottom right if enabled. I am having this exact issue when attempting to use the resizer arrow to extend the height. I do not have the autoGrow plugin, however.

@Codewow could you provide reproduction steps for your issue? I tried to reproduce it (see this codepen) but without success.

@f1ames
Copy link
Contributor

f1ames commented Oct 7, 2020

@vbhargavmbis the quick workaround for this issue is to set editor width explicitly via config.width.

@f1ames
Copy link
Contributor

f1ames commented Oct 8, 2020

Fixed in #4307.

@f1ames f1ames closed this as completed Oct 8, 2020
@f1ames f1ames added this to the 4.15.1 milestone Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core The issue is caused by the editor core code. good first issue Relatively easy to fix. This is a perfect issue if you are willing to create a Pull Request. regression This issue is a regression. status:confirmed An issue confirmed by the development team. type:bug A bug.
Projects
None yet
Development

No branches or pull requests

4 participants