       )
     else
       @link.href = url
+      url = @link.href # read back the url for further normalization
       text = if url.length > @options.maxLength then url.slice(0, @options.maxLength) + '...' else url
       dom(@link).text(text)
     dom(@container).toggleClass('editing', edit)


  _normalizeURL: (url) ->
    url = 'http://' + url unless /^(https?:\/\/|mailto:)/.test(url)
    anchorEl.href = url
    return anchorEl.href

  _suggestURL: (range) ->
    text = @quill.getText(range)

Tooltip  = require('./tooltip')
_        = Quill.require('lodash')
dom      = Quill.require('dom')

class LinkTooltip extends Tooltip
  @DEFAULTS:
