Jump to content


Insert File


2 replies to this topic

#1 sandra-ch

    Etomite Forum Newbie

  • Member
  • 43 posts

Posted 20 February 2007 - 10:18 PM

hi

im using xinha editor on an etomised website (0.6.1 Final (Prelude)).
I'm happy with this editor but i miss two things in the insert file section:

- target: - i would like to give the file a target (for example _blank)
- text instead of filename - i would like to choose between filename and some text i type in myself.

Can anybody help me to add this?

I found in the config.php (\manager\media\xinha\plugins\InsertFile)

/*
 MY_LINK_FORMAT
 The string to be inserted into textarea.
 This is the most crucial setting. I apologize for not using the DOM functions any more,
 but inserting raw string allow more customization for everyone.
 The following strings are replaced by corresponding values of selected files/folders:
 _editor_url
	the url of htmlarea root folder - you should set it in your document (see htmlarea help)
 IF_ICON
 	file type icon filename (see plugins/InsertFile/images/ext directory)
 IF_URL
 	relative path to file relative to $MY_DOCUMENT_ROOT
 IF_CAPTION
	file/folder name
 IF_SIZE
	file size in (B, kB, or MB)
 IF_DATE
	last modification time acording to $MY_DATETIME_FORMAT format
*/
//$MY_LINK_FORMAT		 = '<span class="filelink"><img src="_editor_urlplugins/InsertFile/IF_ICON" alt="IF_URL" border="0"> <a href="IF_URL">IF_CAPTION</a>  <span style="font-size:70%">IF_SIZE  IF_DATE</span></span> ';
$MY_LINK_FORMAT		 = '<span class="filelink"><a href="'.$MY_URL_TO_OPEN_FILE.'IF_URL" target='_blank'>IF_CAPTION</a> <img class="fileimg" src="'.$MY_BASE_URL.'/manager/media/xinha/plugins/InsertFile/IF_ICON" alt="" border="0"><span class="filesize">IF_SIZE</span></span>';

Thanks
sandra-ch

#2 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 20 February 2007 - 10:37 PM

This is actually more of a Xinha support forum type of question... All we really handle is just the integration of the package into Etomite - not modifications of the actual editor itself... Visit http://xinha.python-hosting.com/ to see if there might be a post in their support forums which addresses this issue...

#3 bwoodsdesign

    Likes Etomite Forums!

  • Member
  • PipPip
  • 236 posts

Posted 28 January 2011 - 06:28 AM

Don't know if you are still active around here, Sandra...

But for you and anyone who's had this issue, I have a simple solution... especially useful for end-users/clients who will not be comfortable using the HTML view to edit links...

1) Once you've added the file, the WYSIWYG editor box still has the file name highlighted.

2) While this new file link is highlighted, click on the Insert/Edit link button, and choose the target from the drop down menu. Viola! Your client has gotten the link to pop in a new window/tab without much fuss.

Sure, it takes another couple of clicks, and I personally have no problem going into HTML view and changing it to add a target modifier... whether it's proper syntax for valid HTML is not a concern of mine. If clients need to have a PDF file pop in a new window or tab, their happiness and ease of use in Eto is more important to me!

Cheers,

-Bobbi Jo

Edited by bwoodsdesign, 28 January 2011 - 06:29 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users