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

Make CKEditor resize in width #132

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

otacke
Copy link
Contributor

@otacke otacke commented Jun 11, 2021

The CKEditor instance is given a fixed width intentionally in 13d1ea9, so presumably there are cases where the auto value for the element's width property cause problems. As a consequence, however, CKEditor instances don't resize in width when the window size is changed.

On top, for very long input without spaces, the CKEditor's placeholder will not break anywhere and cause the placeholder field to overflow the parent's area.

When merged in, that will be fixed taking the aforementioned into account. The fix uses a resize listener (removed when the CKEditor instance is destroyed) to recompute and set the width for the CKEditor instance. Also, will stop the respective placeholder field from overflowing.

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

1 participant