Stupid request from client ?!? Options
lpastor
Posted: Wednesday, November 12, 2008 3:52:51 PM

Rank: Aficionado

Joined: 8/4/2008
Posts: 111
Location: Serbia
Hi

is there a easy possibility to set a width and height of pop up windows that you get when click on preview button on RichTextbox editor tool bar ?!?!

My client ask me to make bigger ????


thnks
drobar
Posted: Wednesday, November 12, 2008 4:10:09 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,831
Location: MA, USA
Don't know of one.

(that client seems to ask for a lot of things that are... minor, not part of the real functionality of the CMS. One wonders if they complain to Microsoft about this kind of stuff as well?)

cheers,
doug.

MVP 2007-2009 - Percipient Studios
bootnumlock
Posted: Wednesday, November 12, 2008 6:40:28 PM

Rank: Fanatic

Joined: 10/9/2006
Posts: 460
Location: batavia, IL
my quick thought on this is that it opens the window in the size of the most recently sized window... isn't that typically what browsers do?

have you client open a window and make it big, then click the preview button and see what happens :P

bootnumlock - aka bob baty-barr
My Packages Site: http://packages.maliciousthinktank.com
Business Blog: http://www.maliciousthinktank.com/blog
Personal site: http://www.baty-barr.com
Level 1 Certified!
lpastor
Posted: Thursday, November 13, 2008 12:53:41 PM

Rank: Aficionado

Joined: 8/4/2008
Posts: 111
Location: Serbia
OK

I know that my client is stupid BUT he is the guy ho pay my bills :-)

I found that preview button is not and RichTextbox part . This is a part of umbraco so I look in
umbraco\js folder and my filing is that some js file is responsible for size of preview vindows ...


Can anybody help me to point me in the right js file ...I dont whant to crash my Umbraco

thnks
lpastor
Posted: Friday, November 14, 2008 8:48:33 PM

Rank: Aficionado

Joined: 8/4/2008
Posts: 111
Location: Serbia
anybody ??? any idea?
Adz
Posted: Saturday, November 15, 2008 1:22:08 AM

Rank: Aficionado

Joined: 6/5/2008
Posts: 148
Location: United Kingdom
suggest your client use a proper web browser, like firefox, and set popup windows to open in tabs?

Adam Perry (blog, twitter), developing Umbraco based websites and applications for ConnectDigital.
dunc85
Posted: Saturday, November 15, 2008 3:12:54 AM
Rank: Newbie

Joined: 7/14/2008
Posts: 16
Location: Manchester
Are you sure it's an Umbraco function and not a TinyMCE one?

The preview window for TinyMCE uses a plugin (umbraco_client\tinymce\plugins\preview)

I looked in the js files for Umbraco which seemed to relate to the RTE, but couldn't find a reference to the preview window. But if you go to the TinyMCE preview folder and open editor_plugin, you'll see references to window size.

You may be better editing editor_plugin_src, as I think the other one is compressed so the formatting makes editing difficult.
lpastor
Posted: Saturday, November 15, 2008 11:42:25 AM

Rank: Aficionado

Joined: 8/4/2008
Posts: 111
Location: Serbia
Hi dunc85

I defently sure that I need to look in Umbraco functionality not in TinyMCE , why I sure?!
Becouse preview button is availbele ifor document type that don't have TinyMCE propertie at all !

I think that preview button on TinyMCE open htmlView...

So as I mention before I;m pretty sure that I need to add js file under umbraco\js folder.. found a good file and set preview windows to somthing like 900x600 and make client happy


anyway thnks for tip
dunc85
Posted: Saturday, November 15, 2008 4:14:42 PM
Rank: Newbie

Joined: 7/14/2008
Posts: 16
Location: Manchester
Hi,

I found it. After looking through the js files manually, I ended up using Firebug to actually have a look at the source. The window is just a link with the target set as _blank. But it also showed that the image icon is called vis.gif (although in the code it's vis.GIF).

I opened the umbraco folder in Visual Studio and did a search. So it's in: umbraco/buttonHolders/contentButtons.ascx on line 14.
lpastor
Posted: Saturday, November 15, 2008 6:05:08 PM

Rank: Aficionado

Joined: 8/4/2008
Posts: 111
Location: Serbia
Hi
dunc85 is write ...this is a button which open preview windows ,but I stil dont know where is js file that is responsible for opening that window , and I need it to set height and width of windows ...
dunc85
Posted: Saturday, November 15, 2008 6:09:58 PM
Rank: Newbie

Joined: 7/14/2008
Posts: 16
Location: Manchester
It doesn't use any javascript, it just opens in a new window using the _blank target attribute.

You could replace the target attribute with an onclick or something and use window.open to open the window at the specified size.
lpastor
Posted: Saturday, November 15, 2008 6:51:11 PM

Rank: Aficionado

Joined: 8/4/2008
Posts: 111
Location: Serbia
Ok sorry to ask something but ...

I;m change something in this contentButtons.ascx but don't change the behavior ...can I just change that line or I have to rebuild umbraco ?
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.