rgaiacs / CKEditor-TeXZilla

Plugin for use TeXZilla with CKEditor
www.ime.unicamp.br/~ra092767/ck4.html
Mozilla Public License 2.0
1 stars 1 forks source link

The preview is not resizable #12

Closed fred-wang closed 10 years ago

fred-wang commented 10 years ago

The TeXZilla dialog is resizable, but not the preview box: screenshot

rgaiacs commented 10 years ago

CKEditor don't support CSS max-width neitheir max-height. Because of this the best solution that I found to avoid the dialog window overflow the window was set a fix width for the preview:

html: "<div><p><strong>Preview</strong>:</p><p id=\"Preview\" style=\"width:250px; overflow:auto;\"></p></div>",

@fred-wang do you know a better solution for this problem?

overflow

fred-wang commented 10 years ago

What happens if you does not specify "width:250px; overflow:auto;" at all?

If that's a limitation of CKeditor, the best would be to ask the devs.

rgaiacs commented 10 years ago

What happens if you does not specify "width:250px; overflow:auto;" at all?

It works OK for small equations as show below:

small

The problem is that the dialog window will change its size as the equation became long and for really long equations its overflow the screen as show below:

large

If that's a limitation of CKeditor, the best would be to ask the devs.

I will do that.