External image embedding
This commit is contained in:
parent
33b5faa463
commit
a9fa6dac56
@ -1,3 +1,6 @@
|
||||
seaweedchan:
|
||||
- External image embedding
|
||||
|
||||
### 1.1.6 - 2013-05-01
|
||||
seaweedchan:
|
||||
- Fix Gist links if no username is specificed
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -931,3 +931,7 @@ a:only-of-type > .remove {
|
||||
background: transparent url('data:image/png;base64,<%= grunt.file.read("src/General/img/links/gist.png", {encoding: "base64"}) %>') center left no-repeat!important;
|
||||
padding-left: 18px;
|
||||
}
|
||||
.linkify.image {
|
||||
background: transparent url('data:image/png;base64,<%= grunt.file.read("src/General/img/links/image.png", {encoding: "base64"}) %>') center left no-repeat!important;
|
||||
padding-left: 18px;
|
||||
}
|
||||
|
||||
BIN
src/General/img/links/image.png
Normal file
BIN
src/General/img/links/image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 863 B |
@ -182,6 +182,13 @@ Linkify =
|
||||
preload: 'auto'
|
||||
src: @name
|
||||
|
||||
image:
|
||||
regExp: /(http|www).*\.(gif|png|jpg|jpeg|bmp)$/
|
||||
style: 'border: 0; width: auto; height: auto;'
|
||||
el: ->
|
||||
$.el 'div',
|
||||
innerHTML: "<a target=_blank href='#{@getAttribute 'data-originalURL'}'><img src='#{@getAttribute 'data-originalURL'}'></a>"
|
||||
|
||||
SoundCloud:
|
||||
regExp: /.*(?:soundcloud.com\/|snd.sc\/)([^#\&\?]*).*/
|
||||
style: 'height: auto; width: 500px; display: inline-block;'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user