-InternalLinkFormView = OrchestraView.extend(
+###*
+ * @namespace OpenOrchestra:InternalLinkFormView
+###
+window.OpenOrchestra or= {}
+
+###*
+ * @class InternalLinkFormView
+###
+class OpenOrchestra.InternalLinkFormView extends OrchestraModalView
+
   events:
     'click .modalClose': 'closeModal'
     'hidden.bs.modal': 'closedModal'
     'click button[data-clone]': 'sendToTiny'
 
+  ###*
+   * @param {object} options
+  ###
   initialize: (options) ->
     @options = @reduceOption(options, [
       'selector'

    ]
    return

  render: ->
    @setElement @renderTemplate('OpenOrchestraBackofficeBundle:BackOffice:Underscore/internalLinkModalView',
      body: '<h1 class="spin"><i class=\"fa fa-cog fa-spin\"></i> Loading...</h1>'

        link.attr('data-' + element.data('key'), element.val())
      div = $('<div>').append(link)
      tinymce.get(@options.editor.id).insertContent(div.html())

jQuery ->
  appConfigurationView.setConfiguration 'internalLink', 'showForm', OpenOrchestra.InternalLinkFormView
