You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Stjepan Osojnički 9b491e4c2e Add post images hook (#5828)
* Add post images hook

This hook would allow plugins to manipulate images inside posts  after images are manipulated by nodebb (for example, delay loading). Without this hook we can manipulate images by searching post data for them and manipulate that data, but any change on that level is either erased by nodebb once image loading starts (if delay is turned on) or it disables native image behaviour by changing image code so native behaviour is not triggered.
Hook at this place works for both delayed loading turned on and off.
Usage for this kind of hook was talked about here: https://community.nodebb.org/topic/10960/opening-uploaded-images-in-modal-windows

* trying to fix Travis error

* Update images.js

Hook moved out of wrapImagesInLinks function to places where images are actually loaded. One of the places is inside unloadImage function but in place where loading is happening because of failed if check (delayImageLoading not se in users configuration).
8 years ago
..
images
language Latest translations and fallbacks 8 years ago
less less padding, closes #5811 8 years ago
src Add post images hook (#5828) 8 years ago
uploads tweak gitignores, closes #5250 8 years ago
vendor Merge pull request #5699 from pichalite/jquery 8 years ago
.eslintrc Resolve merge conflicts, minify only `.js` files 8 years ago
.jshintrc ESlint no-undef, remove global comments 8 years ago
503.html fix mixed content warning on 503 status page and installer 9 years ago
favicon.ico
js-enabled.css fixes #5141 8 years ago
logo.png Pass tests 8 years ago