Insert/Edit Image popup

Permalink
I'm adding images to the content block and find that the Update & Cancel buttons are just off the bottom of the dialogue meaning that I have to scroll down every time in order to save changes. Since there's space above the buttons this is a little annoying.

Is there a way to either increase the height of the popup dialogue or reduce the space inside it?

I'm using Concrete 5.4.2.2 and have tried this on both Chrome and Firefox.

Thanks very much.

 
jero replied on at Permalink Reply
jero
Run this in phpmyadmin or whatever database tool you have available:

update BlockTypes set btInterfaceHeight=500 where btHandle='content';


500 can be any value you like (default is 465)
nthorpe replied on at Permalink Reply
Thanks very much. I can see that changes the height of the main TinyMCE editor window but it doesn't change the height of the Insert/Edit Image dialogue.

There seems to be an iframe, id="mce_19_ifr", with a height of 405 specified in the code rendered to the browser. That lives inside a div, id="mce_19", which has a height of 468px. I'm thinking that if I could tweak one or both of these values the containing image edit popup would then be big enough for the contents of the iframe... Any ideas?
jero replied on at Permalink Best Answer Reply
jero
Take a look at concrete/js/tiny_mce/plugins/advimage/editor_plugin.js, specifically ed.windowManager.open()

I don't think there's a way to override this file, so if you change it an upgrade will overwrite it again. Not the end of the world, but there you go.
nthorpe replied on at Permalink Reply
That's done it!

In editor_plugin.js under ed.windowManager.open I changed

height : 405 + parseInt(ed.getLang('advimage.delta_height', 0))
to
height : 435 + parseInt(ed.getLang('advimage.delta_height', 0))

and now the dialogue is big enough for the content without scrolling.

Thanks very much for your help.