discourse/test/javascripts/lib
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
..
bbcode-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
category-badge-test.js.es6 FIX: Make category-chooser show all parent categories (#8706) 2020-01-19 13:07:54 +02:00
click-track-edit-history-test.js.es6 FIX: Missing User objects in Utilities 2019-11-13 15:55:32 -05:00
click-track-profile-page-test.js.es6 DEV: skip click-track to attempt to reduce timeouts in tests (#7836) 2019-07-02 10:08:28 +02:00
click-track-test.js.es6 FIX: Missing User objects in Utilities 2019-11-13 15:55:32 -05:00
computed-test.js.es6 DEV: Import EmberObject rather than global variable (#8256) 2019-10-29 14:23:50 -05:00
discourse-test.js.es6 REFACTOR: Test Memory Usage Fixes (#7769) 2019-06-14 14:54:20 +02:00
emoji-store-test.js.es6 FEATURE: favorites emojis will also show in composer autocomplete (#8011) 2019-08-16 11:47:03 +02:00
emoji-test.js.es6 FIX: Respect enable_inline_emoji_translation setting in titles 2019-12-03 20:39:11 +01:00
formatter-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
highlight-text-test.js.es6 DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
i18n-test.js.es6 FIX: Escape $ in translations before interpolating (#8100) 2019-09-16 13:52:49 -04:00
icon-library-test.js.es6 Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
key-value-store-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
load-script-test.js.es6 DEV: skip load-script to prevent timeouts (#7817) 2019-06-27 10:57:40 +02:00
oneboxer-test.js.es6 Add tests for oneboxer.js.es6 (#8418) 2019-11-28 08:20:32 +10:00
preload-store-test.js.es6 DEV: prevents asyncTestDiscourse/controllerFor/fixture to leak (#7717) 2019-06-06 13:10:41 +02:00
pretty-text-test.js.es6 FEATURE: Use upload:// short URL for videos and audio in composer (#8760) 2020-01-23 09:41:39 +10:00
sanitizer-test.js.es6 DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
screen-track-test.js.es6 Skip test for now 2019-04-18 17:55:16 +10:00
search-test.js.es6 FEATURE: Allow scoping search to tag (#8345) 2019-11-14 10:40:26 +10:00
sharing-test.js.es6 FEATURE: adds plugin sharing api 2018-06-13 13:25:51 +02:00
text-direction-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
to-markdown-test.js.es6 DEV: use upload short-url in html to markdown conversion if 'base62-sha1' data attr available. 2019-07-05 10:06:41 +05:30
tooltip-test.js.es6 DEV: prevents asyncTestDiscourse/controllerFor/fixture to leak (#7717) 2019-06-06 13:10:41 +02:00
upload-short-url-test.js.es6 FEATURE: Use upload:// short URL for videos and audio in composer (#8760) 2020-01-23 09:41:39 +10:00
uploads-test.js.es6 FEATURE: Use upload:// short URL for videos and audio in composer (#8760) 2020-01-23 09:41:39 +10:00
url-test.js.es6 DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
user-search-test.js.es6 FIX: Do not skip some emails in user search (#8317) 2019-11-11 18:42:45 +02:00
utilities-test.js.es6 FIX: Do not autocomplete categories or emojis in code blocks (#8459) 2019-12-09 15:07:15 +02:00
white-lister-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00