Sha256: 8cc7882a7d73319f5c6a2e2c6805d2be43e40ad0a55ad0e5ef007dbeeb314be7
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 Bytes
Contents
module WysihatFilesHelper def include_link(file) function = file.file_content_type.starts_with?('image') ? ".insertImage(this.href);" : ".insertHTML('<a href=\"' + this.href + '\">#{file.file_file_name}</a>');" link_to_function( file.file_file_name, "$$('iframe##{editor_id}')[0]#{function}facebox.close();", :href => file.file.url ) end def editor_id return params[:wysihat_file][:editor] if params[:wysihat_file] && params[:wysihat_file][:editor] params[:editor] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wysihat-engine-0.1.13 | app/helpers/wysihat_files_helper.rb |