Sha256: eaad6d62d659577202d59584fa9e1f7d6c79730388a6d3aa263bbd37b462437f

Contents?: true

Size: 599 Bytes

Versions: 27

Compression:

Stored size: 599 Bytes

Contents

#= require 'alchemy/alchemy.element_editors'



window.CustomProxedElementEditor = $.extend {}, Alchemy.ElementEditors


$.extend window.CustomProxedElementEditor,
  init: (selector = "#element_area")->
    @element_area = $(selector)
    @bindEvents()

    @initialize_tinymce()
    return

  initialize_tinymce: ()->
    ids = []
    @element_area.find('.has_tinymce').each (i, e)->
      ids.push($(e).attr("id").match(/[0-9]+/)[0])
    Alchemy.Tinymce.init(ids)


# disattivazione del check di reload pagina
$(document).on 'submit', '.simple_form.alchemy', (e)=>
  window.onbeforeunload = null;

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-3.1.5 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-3.1.4 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-3.1.3 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-3.1.2 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-3.1.1 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-3.1.0 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-2.2.2 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-3.0.0 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-2.2.1 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-2.2.0 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-2.1.2 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-2.1.1 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-2.1.0 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-2.0.3 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-2.0.2 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-2.0.1 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-2.0.0 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-0.1.9 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
alchemy-custom-model-0.1.7 app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee