make edit area fit on screen

Ticket

+commit
 

I would like it if you always got an editor within the currently visible portion of your browser window whenever you clicked "edit."

--Ethan McCutchen.....Sun Oct 07 16:33:17 PDT 2007

 

PBworks is nice example of this, and they're using tinyMCE.

 

Whenever you enter edit mode, any Basic card being edited (on its own or in a multi-edit context) will fit in one screen vertically, with enough space at the top and bottom for the card interface - i.e., including the wysiwig editing bar and Save/Cancel/Delete buttons.

 

For simple edit, scroll so that is what is on-screen. For multi-edit, scroll so that the top of the card is at the top of the screen.

 

 

potentially easy, if TinyMCE has something for it already


also see eliminate extra vertical space in edit mode

  --Ethan McCutchen.....Fri May 15 15:34:55 -0700 2009


This looks like part of the solution: http://tinymce.moxiecode.com/wiki.php/Configuration:height

 

I tried adding this line to test's *tinyMCE (had to remove "auto_resize: true,") for it to tak effect):

height : "450",

 

...and it looked pretty good. Percentages (e.g. "80%") don't seem to work, so if we want to adjust to the user's browser window size, we'll have to calculate a number and not set it in-Wagn. This also doesn't address scrolling, obviously.

  --John Abbe.....Tue Feb 15 20:23:06 -0800 2011


ok, this is coming back to me. we're left with the option of having it awkwardly short in solo card contexts or awkwardly long in multi-edit. I'm kinda tempted just to make it short and let people open it further if they want.

 

wonder if percentages would work if we updated tinyMCE. might try that on a couple of browsers...

  --Ethan McCutchen.....Tue Feb 15 20:53:40 -0800 2011


seems like what we really want is a maximum on the auto_resize.

  --Ethan McCutchen.....Tue Feb 15 20:54:04 -0800 2011


Shall we combine this with eliminate_extra_vertical_space_in_edit_mode? Now that we're not talking about scrunching the form, this is the same issue, right?

  --Ethan McCutchen.....Fri Feb 18 10:13:27 -0800 2011


That ticket is already closed.

 

So, big headache to do a different size based on if it's in multi-edit?

  --John Abbe.....Tue Feb 22 12:00:44 -0800 2011


Looks like max height on autoresize is possible. http://tinymce.moxiecode.com/forum/viewtopic.php?id=11688 implies it can be configured in config.php

 

Found on page 2 of http://tinymce.moxiecode.com/search.php?searchquery=auto_resize (and stopped scanning)

  --John Abbe.....Tue Feb 22 12:07:09 -0800 2011


It looks like I was able to get this to work on culturesmith. Wagn 1.8 included a newer version of tinymce, and in fact I think the auto resize is basically broken on most wagns now because we're not using the new configuration option yet. The setting won't take a relative height, but I went with 500px, which is reasonable in most uses.

  --Ethan McCutchen.....Fri Feb 24 23:27:09 +0000 2012


..settin up on test dwagn now.

  --Ethan McCutchen.....Fri Feb 24 23:27:25 +0000 2012