Skip to content
This repository was archived by the owner on Aug 1, 2018. It is now read-only.

Uncaught ReferenceError: JST is not defined #73

@adiakritos

Description

@adiakritos

Using Rails 3.2.22

Here's the console stack trace:

Uncaught ReferenceError: JST is not defined
at Editor._addToolbar (http://intranet.lvh.me:3000/assets/active_admin/editor/editor.js?body=1:29:20)
at new Editor (http://intranet.lvh.me:3000/assets/active_admin/editor/editor.js?body=1:13:10)
at HTMLLIElement.<anonymous> (http://intranet.lvh.me:3000/assets/jquery-ui.js?body=1:508:30)
at Function.each (http://intranet.lvh.me:3000/assets/jquery.js?body=1:658:23)
at init.each (http://intranet.lvh.me:3000/assets/jquery.js?body=1:267:17)
at init.$.fn.(anonymous function) [as editor] (http://intranet.lvh.me:3000/assets/jquery-ui.js?body=1:503:9)
at HTMLDocument.<anonymous> (http://intranet.lvh.me:3000/assets/active_admin/editor.js?body=1:6:36)
at fire (http://intranet.lvh.me:3000/assets/jquery.js?body=1:3065:30)
at Object.fireWith [as resolveWith] (http://intranet.lvh.me:3000/assets/jquery.js?body=1:3177:7)
at Function.ready (http://intranet.lvh.me:3000/assets/jquery.js?body=1:434:13)

Within editor.js it's referring to this method where JST is being referenced:

/**
  * Adds the wysihtml5 toolbar. If uploads are enabled, also adds the
  * necessary file inputs for uploading.
  */
 Editor.prototype._addToolbar = function() {
   var template = JST['active_admin/editor/templates/toolbar']({
     id: this.$el.attr('id') + '-toolbar'
   })

   this.$toolbar = $(template)

   if (config.uploads_enabled) {
     var _this = this
     this.$toolbar.find('input.uploadable').each(function() {
       _this._addUploader(this)
     })
   }

   this.$el.find('.wrap').prepend(this.$toolbar)
 }

I haven't done anything with the initialization file yet - I don't want to upload images. Do I still need to fill this out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions