Insert Hyperlink dialog

Last post 05-23-2006, 6:13 PM by MichaelPhillips. 3 replies.
Sort Posts: Previous Next
  •  05-23-2006, 12:50 PM 19421

    Insert Hyperlink dialog

    How do I modifiy the Insert Hyperlink dialog?  By default, this dialog has three tabs (Link, General, Style Builder).  I would like to take out (or hide) the General and Style Builder tabs and modify the Link tab.
     
    Thanks in advance,
     
    Mike
  •  05-23-2006, 5:43 PM 19438 in reply to 19421

    Re: Insert Hyperlink dialog

    I figured out how to do this.  For those who may be wondering how to do this, I'll spell out what I did.  And if there is a better way, please respond.
     
    I added style="display:none" to those elements on the tag_a.ascx page (Link tab) that I did not want to show (this is according to another post in this forum) and made other modifications to fit our needs.  And to prevent the General and Style Builder tabs from showing, I added the highlighted code to the tag.frame.aspx as follows:
     
     foreach(XmlElement xe in doc.DocumentElement.SelectNodes("add"))
    {
       string tab=xe.GetAttribute("tab");
       if(IsTagPattern(tagName,xe.GetAttribute("pattern")))
          {
             bool isactive=(index==0&&(tabName==null||tabName==""))||(string.Compare(tab,tabName,true)==0);
             if(isactive)
                {
                   tabcontrol=xe.GetAttribute("control");
                   tabtext=xe.GetAttribute("text");
                }
           %>
                <some html code>
             
             <%
             index++;
     
             /*Break if this is an anchor tag to prevent the General and Style Builder tabs being added to the Insert Hyperlink  dialog*/
             if (tagName == "A")
                break;
          }
    }
  •  05-23-2006, 5:46 PM 19439 in reply to 19438

    Re: Insert Hyperlink dialog

    Mike,
     
    This is another option.
     
    Open the CuteEditorWeb\CuteSoft_Client\CuteEditor\Dialogs\tag.config.
     
    To turn off the general tab, remove this line:
    <add pattern="*" tab="Common" text="[[Common]]" control="Tag_Common.ascx" />

    To turn off the style builder tab, remove this line:
    <add pattern="*" tab="Style" text="[[StyleBuilder]]" control="Tag_Style.ascx" />
     
    Hope it helps.
     
     

    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

  •  05-23-2006, 6:13 PM 19440 in reply to 19439

    Re: Insert Hyperlink dialog

    Thanks Adam.  That worked great and is a little simplier to implement.
     
    When I was digging around earlier, commenting out those lines crossed my mind but I was not sure if those controls are used in other places. 
     
    Thanks again.
     
     
View as RSS news feed in XML