|
|
 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
|
|
 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
|
|
 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.comBusiness Blog: http://www.maliciousthinktank.com/blogPersonal site: http://www.baty-barr.comLevel 1 Certified!
|
|
 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
|
|
 Rank: Aficionado
Joined: 8/4/2008 Posts: 111 Location: Serbia
|
anybody ??? any idea?
|
|
 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.
|
|
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.
|
|
 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
|
|
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.
|
|
 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 ...
|
|
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.
|
|
 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 ?
|
|
|
Guest |