             uuid: ""
             link: true
             image: true
+            defaultUrl: 'http://'
             dialogOpts:
                 autoOpen: false
                 width: 540

            widget = this

            dialogId = "#{@options.uuid}-dialog"
            dialog = jQuery "<div id=\"#{dialogId}\"><form action=\"#\" method=\"post\" class=\"linkForm\"><input class=\"url\" type=\"text\" name=\"url\" size=\"40\" value=\"http://\" /><input type=\"submit\" value=\"Insert\" /></form></div>"
            dialogSubmitCb = () ->
                link = $(this).find(".url").val()
                widget.options.editable.restoreSelection(widget.lastSelection)
                if widget.lastSelection.startContainer.parentNode.href is undefined
                    document.execCommand "createLink", null, link
                else
                    widget.lastSelection.startContainer.parentNode.href = link
                widget.options.editable.removeAllSelections()
                dialog.dialog('close')
                return false

                button.bind "change", (event) ->
                    # we need to save the current selection because we will lose focus
                    widget.lastSelection = widget.options.editable.getSelection()
                    urlInput = jQuery('input[name=url]', dialog);
                    if widget.lastSelection.startContainer.parentNode.href is undefined
                        urlInput.val(widget.options.defaultUrl)
                    else
                        urlInput.val(jQuery(widget.lastSelection.startContainer.parentNode).attr('href'))
                        jQuery(urlInput[0].form).find('input[type=submit]').val('update')

                    dialog.dialog('open')

                @element.bind "keyup paste change mouseup", (event) ->
