Change options of the hyperlink dialogue window

Last post 05-06-2008, 10:31 AM by Adam. 5 replies.
Sort Posts: Previous Next
  •  05-05-2008, 3:09 AM 40031

    Change options of the hyperlink dialogue window

    I am trying to configure Cute Editor for classic ASP and it seems to work well on the server (IIS 6), but I am only to use it as a rich text-box for my external site, so some of the features must be removed.
     
    Users can by defalut create hyperlinks by clickin on "insert hyperlink"-button, but when so the dialoge window has too many options. I want to customize it so it only shows the URL and the target options. One item in particular needs to be removed - the browse button since it has no function for me.
     
    Is it possible to change theese matters and if so, how or where do I look to change it within the Cute editor files?
     
    In addition to the above I also noticed that when editing you can right click and get a menu which also shows an insert-command for image, flash etc and a browsing command - these also needs to be removed.
  •  05-05-2008, 2:39 PM 40050 in reply to 40031

    Re: Change options of the hyperlink dialogue window

    Jake,
     
    You can remove those options by add the following code to the element:
     
    style="display:none"
     
    >>In addition to the above I also noticed that when editing you can right click and get a menu which also shows an insert-command for image, flash etc and a browsing command - these also needs to be removed.
     
    Please open \CuteEditor_Files\Configuration\ContextMenuMode\Default.xml and remove the following code:
     
     <define name="InsertGroup" text="Insert">
          <subItems>
            <ref name="ImageGalleryByBrowsing" />
            <ref name="InsertImage" />
            <ref name="InsertFlash" />
            <ref name="InsertMedia" />
            <ref name="InsertDocument" />
            <ref name="InsertTemplate" />
            <spliter />
            <ref name="InsertTable" />
            <ref name="InsertHorizontalRule" />
            <spliter />
            <ref name="InsertAdvancedGroup"/>
            <ref name="InsertFormGroup"/>
          </subItems>
        </define>

    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-05-2008, 5:09 PM 40054 in reply to 40050

    Re: Change options of the hyperlink dialogue window

    Do you mean that I should put the style command in the editor instance of the asp-page?
     
    Like this?:
     
    ---------------
    DIM editor
    editor.ID = "Editor1"
    editor.style = "display:none"
     ....
    ---------------
    I tried this, but nothing happens.
     
    Where do I put the style="display:none", did I misunderstand what you ment with "element"?
     
    However....changing the default.xml got rid of the insert command (Super!).
     
     
    Last but not least I have another related question - Is there any way to also remove the adress-field in the dialoge-windows? The one showing what page is loaded (on top of the windows)? 
  •  05-05-2008, 5:22 PM 40055 in reply to 40054

    Re: Change options of the hyperlink dialogue window

    1. Open the link dialog (Tag_A.ascx) and remove the option you don't need use the following method:


    Change this line:

    Before<td><button id="btnbrowse">[[Browse]]</button></td>


    to:

    After<td><button id="btnbrowse" style="display:none">[[Browse]]</button></td>

    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-05-2008, 5:50 PM 40056 in reply to 40055

    Re: Change options of the hyperlink dialogue window

    Now it seems to work, but only in Firefox, not in IE - there it still shows the adress-field.
     
    Still I can't manage to remove the two tags at the top: "Link" and "common" (especially "common"). Is it possible to remove them too?
  •  05-06-2008, 10:31 AM 40101 in reply to 40056

    Re: Change options of the hyperlink dialogue window

    Jake,
     
    Please open CuteEditor_Files\Dialogs\Tag.config and remove the following code:
     

      <add pattern="*" tab="Common" text="Common" control="Tag_Common.asp" />
      <add pattern="*" tab="Style" text="StyleBuilder" control="Tag_Style.asp" />

    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

View as RSS news feed in XML