Customize document inserts

Last post 11-28-2005, 10:10 AM by rachale. 2 replies.
Sort Posts: Previous Next
  •  11-26-2005, 12:11 PM 13076

    Customize document inserts

    I need to customize document inserting.  It seems that the default is to insert the URL in between the A tags:

    <A href = '\url\to\the\document.txt'>\url\to\the\document.txt</A>
     
    I want to default the text to just :

    <A href = '\url\to\the\document.txt'>document.txt</A>

    ...and possibly add a document icon based on the file extention:

    <A href = '\url\to\the\document.txt'><img src='doc_icon_txt.gif'>document.txt</A>

    Changing the "Title" in the dialog box seems to have no effect on this.  (Bug??)   I attempted to modify the client script and use the inp_title[OxOcd4d[0xa]] variable, but this seems to be ingnored by your insert code.  It *seems* like this is happening server-side, and I am not sure if you have a hook for me.
     
    If the inp_title[OxOcd4d[0xa]] variable being ignored is just a bug, and it is fixed, then I could just do what I need to do client-side.
     
     
    ANY suggestions welcome.  And, your product is awesome!
  •  11-27-2005, 10:13 PM 13104 in reply to 13076

    Re: Customize document inserts

    rachale,
     
    The title field allows you add the "title" attribute within the hyperlink tag.

    For example:

    <a href = "bio.html" title = "Biography of Monet">biography of Monet</a>.

    To add turn selected text into a hyperlink, you need to highlight the text you want to link to another page and click the insert-link (downloadable files dialog button).

    Keep me posted


     

    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

  •  11-28-2005, 10:10 AM 13136 in reply to 13104

    Re: Customize document inserts

    Oh!  That makes sense about the title tag. 
     
    I am aware that you can select the text to create a link as you describe.  But, what I want to do is change the behaviour if no text is selected.  Instead of using the URL as the inner text of the <A> tag, I want to modify the inner text in code.
     
    Is this possible to do either client-side or server-side?
     
    Thanks for the quick response.
View as RSS news feed in XML