                                 setTinyMCEWidth()
                                 initTinyMCE()
                                 afterTinyMCEInitialized ->
+                                    makeSpaceForMCE()
                                     tinymceObject.show()
                                     tinymceObject.focus()
                             else
                                 textfield.show()
                                 checkbox.show()
+    endEdit           : ->
+                            if lhha() == 'text'
+                                # Reset height we might have placed on the explanation element inside the cell
+                                Builder.resourceEditorCurrentLabelHint.height('')
+
 
 # Show editor on click on label
 Builder.resourceEditorStartEdit = () ->

        if tinymceObject.initialized then f()
        else tinymceObject.onPostRender.add(f)

    # Function to initialize the TinyMCE, memoized so it runs at most once
    initTinyMCE = _.memoize ->
        tinymceAnchor.show()
        tinymceAnchor.attr('id', _.uniqueId())
        tinymceObject = new window.tinymce.Editor(tinymceAnchor.attr('id'), YAHOO.xbl.fr.Tinymce.DefaultConfig)
        tinymceObject.render()
        window.t = tinymceObject
        # We don't need the anchor anymore; just used to tell TinyMCE where to go in the DOM
        afterTinyMCEInitialized -> tinymceAnchor.detach()

    # Set width of TinyMCE to the width of the container
    # - If not yet initialized, set width on anchor, which is copied by TinyMCE to table

    # Get position before showing editor, so showing doesn't move things in the page
    resourceEditor().container.width(Builder.resourceEditorCurrentLabelHint.outerWidth())
    resourceEditor().container.show()
    resourceEditor().startEdit()
    labelHintOffset = Builder.resourceEditorCurrentLabelHint.offset()
    resourceEditor().container.offset(labelHintOffset)
    resourceEditor().setValue(labelHintValue())
