forked from bofh/fetsite
Merge branch 'master' of github.com:fetsite/fetsite
Conflicts: app/views/galleries/index.html.erb
This commit is contained in:
BIN
app/assets/images/pdf-logo.jpg
Normal file
BIN
app/assets/images/pdf-logo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
@@ -23,13 +23,13 @@
|
||||
//= require jquery-fileupload
|
||||
|
||||
function insertAttachment(url,name) {
|
||||
var ext = url.split('.').pop();
|
||||
var img_ext = [ "jpg", "png", "bmp" , "jpeg" ];
|
||||
|
||||
if ( img_ext.indexOf(ext) > -1) {
|
||||
tinymce.activeEditor.setContent(tinymce.activeEditor.getContent({format : 'raw'}) + "<img src=\"" + url + "\" title=\"" + name + "\">");
|
||||
}
|
||||
else {
|
||||
tinymce.activeEditor.setContent(tinymce.activeEditor.getContent({format : 'raw'}) + "<a href=\"" + url + "\">" + name +"</a>");
|
||||
}
|
||||
var ext = url.split('.').pop().toLowerCase();
|
||||
var img_ext = [ "jpg", "png", "bmp" , "jpeg" ];
|
||||
|
||||
if ( img_ext.indexOf(ext) > -1) {
|
||||
tinymce.activeEditor.setContent(tinymce.activeEditor.getContent({format : 'raw'}) + "<img src=\"" + url + "\" title=\"" + name + "\">");
|
||||
}
|
||||
else {
|
||||
tinymce.activeEditor.setContent(tinymce.activeEditor.getContent({format : 'raw'}) + "<a href=\"" + url + "\">" + name +"</a>");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
*= require_tree .
|
||||
*= require jquery.fileupload-ui
|
||||
* require 'bootstrap'
|
||||
|
||||
|
||||
*/
|
||||
$linkColor: #03006E;
|
||||
@@ -55,4 +56,4 @@ border-style: solid;
|
||||
border-width: 1px 0px 0px 0px;
|
||||
border-color: grey;
|
||||
min-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user