Load missing libraries for server-side PrettyText

This commit is contained in:
Régis Hanol 2018-05-05 11:21:07 +02:00
parent 71f5215711
commit 738f3f5229

View File

@ -82,6 +82,8 @@ module PrettyText
ctx_load_manifest(ctx, "markdown-it-bundle.js")
root_path = "#{Rails.root}/app/assets/javascripts/"
apply_es6_file(ctx, root_path, "discourse/helpers/parse-html")
apply_es6_file(ctx, root_path, "discourse/lib/to-markdown")
apply_es6_file(ctx, root_path, "discourse/lib/utilities")
PrettyText::Helpers.instance_methods.each do |method|