mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FEATURE: server side support for upload:// markdown
This allows uploads to be specified using short sha1 hash instead of full URL Client side change is pending
This commit is contained in:
parent
b00747fd49
commit
bcf7dc38c2
11 changed files with 202 additions and 0 deletions
|
@ -165,6 +165,7 @@ module PrettyText
|
|||
__optInput.customEmoji = #{custom_emoji.to_json};
|
||||
__optInput.emojiUnicodeReplacer = __emojiUnicodeReplacer;
|
||||
__optInput.lookupInlineOnebox = __lookupInlineOnebox;
|
||||
__optInput.lookupImageUrls = __lookupImageUrls;
|
||||
#{opts[:linkify] == false ? "__optInput.linkify = false;" : ""}
|
||||
__optInput.censoredWords = #{WordWatcher.words_for_action(:censor).join('|').to_json};
|
||||
JS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue