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

Edit window too small #10

Open
milossramek opened this issue Oct 21, 2020 · 6 comments
Open

Edit window too small #10

milossramek opened this issue Oct 21, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@milossramek
Copy link

LaTeX formulas can get really large and often require multiple lines. However, the editing field in the popup widget is very small. Would it be possible to make it multiline and to add it a possibility to change the popup size?
Thanks!

@isaul32
Copy link
Owner

isaul32 commented Oct 21, 2020

You can try add some CSS rules for .ck-math-form in your styles. I can also look if I can add config option for that.

@isaul32 isaul32 added the enhancement New feature or request label Oct 21, 2020
@milossramek
Copy link
Author

I am sorry, I do not know what to do. I've found .ck-math-form in theme/mathform.css, but I have no idea what to set there. :(

@isaul32
Copy link
Owner

isaul32 commented Oct 21, 2020

E.g. this doubles the width of input.

.ck-math-form input.ck.ck-input.ck-input-text {
  min-width: 36em; /* default is 18em */
}

Multiline support requires more work. Custom labeled textarea view need to be implemeted for that. I try implement it at some point.

@milossramek
Copy link
Author

Thank you for the tip.

@dcfreire
Copy link

You can try add some CSS rules for .ck-math-form in your styles. I can also look if I can add config option for that.

A config option would be great, but in my opinion, a math-block should have a larger input area by default.
97444604-1a35cc00-190b-11eb-8b7d-8919ef92527e.png

As you can see, even simple expressions are hard to read if you put them in a small text box with no linebreaks. For larger expressions, these limitations makes editing math-blocks inside ckeditor very impractical. So much so, that I had an easier time writing math outside of ckeditor, then copying and pasting it.

@d-mok
Copy link

d-mok commented Apr 14, 2024

is there any update on this? this plugin is not useable with a small single-lined input window.
There is a TextareaView in ckeditor. Can we use that insteand of labeledInputView?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants