mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
Load missing libraries for server-side PrettyText
This commit is contained in:
parent
71f5215711
commit
738f3f5229
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue
Block a user