discourse/app/assets/javascripts/pretty-text
Martin Brennan 65481858c2
FEATURE: Use upload:// short URL for videos and audio in composer (#8760)
For consistency this PR introduces using custom markdown and short upload:// URLs for video and audio uploads, rather than just treating them as links and relying on the oneboxer. The markdown syntax for videos is ![file text|video](upload://123456.mp4) and for audio it is ![file text|audio](upload://123456.mp3).

This is achieved in discourse-markdown-it by modifying the rules for images in mardown-it via md.renderer.rules.image. We return HTML instead of the token when we encounter audio or video after | and the preview renders that HTML. Also when uploading an audio or video file we insert the relevant markdown into the composer.
2020-01-23 09:41:39 +10:00
..
context FIX: Composer preview not caching inline onebox. 2019-06-11 09:14:53 +08:00
emoji UX: Better emoji escaping for topic title (#7218) 2019-03-21 09:11:33 +01:00
engines FEATURE: Use upload:// short URL for videos and audio in composer (#8760) 2020-01-23 09:41:39 +10:00
censored-words.js.es6 FIX: Various watched words improvements 2019-08-02 15:29:12 +01:00
emoji.js.es6 FIX: Respect enable_inline_emoji_translation setting in titles 2019-12-03 20:39:11 +01:00
guid.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
inline-oneboxer.js.es6 FIX: Composer preview not caching inline onebox. 2019-06-11 09:14:53 +08:00
oneboxer-cache.js.es6 DEV: Remove pretty_text import hack & still work server-side (#8266) 2019-10-31 11:54:46 -05:00
oneboxer.js.es6 FIX: oneboxer.js infinitely retrying failed requests (#8414) 2019-11-26 15:49:58 +10:00
pretty-text.js.es6 FIX: Various watched words improvements 2019-08-02 15:29:12 +01:00
sanitizer.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
upload-short-url.js.es6 FEATURE: Use upload:// short URL for videos and audio in composer (#8760) 2020-01-23 09:41:39 +10:00
white-lister.js.es6 FEATURE: Use upload:// short URL for videos and audio in composer (#8760) 2020-01-23 09:41:39 +10:00
xss.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00