     {@compositionController, @composition} = @editorController
 
     @element = document.createElement("details")
+    @element.open = true if @getSetting("open") is "true"
     @element.classList.add(@template)
 
     @titleElement = document.createElement("summary")

          handler.call(this, event)

  didToggle: (event) ->
    @render()

  isOpen: ->


  renderTitle: ->
    @titleElement.innerHTML = @getTitle()

  getSetting: (key) ->
    key = @getSettingsKey(key)
    window.sessionStorage?[key]

  saveSetting: (key, value) ->
    key = @getSettingsKey(key)
    window.sessionStorage?[key] = value

  getSettingsKey: (key) ->
    "trix/inspector/#{@template}/#{key}"
