Insert Hyperlink dialog custom window height and width

Last post 04-18-2008, 10:23 PM by cutechat. 4 replies.
Sort Posts: Previous Next
  •  04-17-2008, 4:07 PM 39427

    Insert Hyperlink dialog custom window height and width

    I made a few changes to the Insert Hyperlink dialog (tag_a.ascx), shortening it to ONLY the URL and TITLE fields.  I am now wondering if it is possible to shrink the dialog window to remove the extra whitespace (shorten the window's height).  I made similar changes to the InsertImage.aspx page, and would like to do the same thing there.  Can I define a custom height and width for these dialog windows?  Thank you,
     
    Chris
     
     Custom Insert Hyperlink dialog  Custom Insert Image dialog
     
     


  •  04-17-2008, 4:19 PM 39428 in reply to 39427

    Re: Insert Hyperlink dialog custom window height and width

    Please open the following file:
     
    CuteSoft_Client\CuteEditor\Scripts\Constant.js
     
    And modify the following code:
     
    // Default editorconstant ornaments for the Tag dialog
    editorconstant._tagDialogFeature = "help:0;status:0;resizable:0;dialogWidth:453px;dialogHeight:515px;";

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-18-2008, 7:45 AM 39473 in reply to 39428

    Re: Insert Hyperlink dialog custom window height and width

    Thank you! 
  •  04-18-2008, 8:42 AM 39474 in reply to 39428

    Re: Insert Hyperlink dialog custom window height and width

    Actually, that leads to a similar question... Editing the Constant.js script worked well for my InsertImage dialog, however any size change I make to the _tagDialogFeature affects all of the tag dialogs and I assume all custom dialogs.  Is there a way to ONLY affect the tag_a (hyperlink) dialog?  Or could I somehow change the size of that dialog window alone?  Another possible solution would be to have the InsertHyperlink button call the InsertDocument dialog instead.  Then, I could just hide everything on the InsertDocument dialog and create one similar to the one in my image (URL and TITLE only).
     
    I would be greatful to receive a response on either of the solutions listed above.  Thank you,
     
    Chris
  •  04-18-2008, 10:23 PM 39493 in reply to 39474

    Re: Insert Hyperlink dialog custom window height and width

    Hi,
     
    The editor can't not know you modified the tag_a.aspx.
     
    So the best way is change the tag_a.aspx and resize itself using javascript :
     
    <script>
    top.resizeTo(420,320)
    </script>
     
    Regards , Terry.
     
View as RSS news feed in XML