         activateForm(@, $('form', @$el))
     return
 
+  ###*
+   * @param {object} event
+  ###
   closeModal: (event) ->
     @$el.modal 'hide'
 
+  ###*
+   * @param {object} event
+  ###
   closedModal: (event) ->
     @$el.remove()
 
+  ###*
+   * @param {object} event
+  ###
   sendToTiny: (event) ->
     if $('.label-tinyMce', this.$el).val() != ''
       @closeModal()

InternalLinkFormView = OrchestraView.extend(
  events:
    'click .modalClose': 'closeModal'
    'hidden.bs.modal': 'closedModal'
    'click button[data-clone]': 'sendToTiny'

  initialize: (options) ->
    @options = @reduceOption(options, [
      'selector'

        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
