Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dijit/_editor/plugins/LinkDialog.js

  • Provides:

    • dijit._editor.plugins.LinkDialog
  • Requires:

    • dijit._Widget in common
    • dijit._editor._Plugin in common
    • dijit.TooltipDialog in common
    • dijit.form.DropDownButton in common
    • dijit.form.ValidationTextBox in common
    • dijit.form.Select in common
    • dijit._editor.range in common
    • dojo.i18n in common
    • dojo.string in common
  • dijit._editor.plugins.LinkDialog

    • type
      Function
    • chains:
      • dijit._editor._Plugin: (prototype)
      • dijit._editor._Plugin: (call)
    • summary
      This plugin provides the basis for an 'anchor' (link) dialog and an extension of it
      provides the image link dialog.
    • description
      The command provided by this plugin is:
      * createLink
  • dijit._editor.plugins.LinkDialog.buttonClass

    • alias - dijit.form.DropDownButton
  • dijit._editor.plugins.LinkDialog.useDefaultCommand

    • type
      bool
  • dijit._editor.plugins.LinkDialog.urlRegExp

    • tags:
    • type
      String
    • summary
      Used for validating input as correct URL.  While file:// urls are not terribly
      useful, they are technically valid.
  • dijit._editor.plugins.LinkDialog.emailRegExp

    • tags:
    • type
      String
    • summary
      Used for validating input as correct email address.  Taken from dojox.validate
      
      
      host.
  • dijit._editor.plugins.LinkDialog.htmlTemplate

    • tags:
    • type
      String
    • summary
      String used for templating the HTML to insert at the desired point.
  • dijit._editor.plugins.LinkDialog.tag

    • tags:
    • type
      String
    • summary
      Tag used for the link type.
  • dijit._editor.plugins.LinkDialog._hostRxp

    • type
      Object
  • dijit._editor.plugins.LinkDialog._userAtRxp

    • type
      Object
  • dijit._editor.plugins.LinkDialog.linkDialogTemplate

    • tags:
    • type
      String
    • summary
      Template for contents of TooltipDialog to pick URL
  • dijit._editor.plugins.LinkDialog._initButton

    • type
      Function
  • dijit._editor.plugins.LinkDialog.dropDown

    • type
      Object
  • dijit._editor.plugins.LinkDialog._uniqueId

  • dijit._editor.plugins.LinkDialog._urlInput

    • type
      Object
  • dijit._editor.plugins.LinkDialog._textInput

    • type
      Object
  • dijit._editor.plugins.LinkDialog._setButton

    • type
      Object
  • dijit._editor.plugins.LinkDialog._urlRegExp

    • type
      Object
  • dijit._editor.plugins.LinkDialog._emailRegExp

    • type
      Object
  • dijit._editor.plugins.LinkDialog._urlInput.isValid

    • type
      Object
  • dijit._editor.plugins.LinkDialog._checkAndFixInput

    • summary
      A function to listen for onChange events and test the input contents
      for valid information, such as valid urls with http/https/ftp and if
      not present, try and guess if the input url is relative or not, and if
      not, append http:// to it.  Also validates other fields as determined by
      the internal _isValid function.
    • type
      Function
  • dijit._editor.plugins.LinkDialog._delayedCheck

    • type
      Object
  • dijit._editor.plugins.LinkDialog._connectTagEvents

    • summary
      Over-ridable function that connects tag specific events.
    • type
      Function
  • dijit._editor.plugins.LinkDialog._isValid

    • summary
      Internal function to allow validating of the inputs
      for a link to determine if set should be disabled or not
    • tags:
    • type
      Function
  • dijit._editor.plugins.LinkDialog._setContent

    • parameters:
      • staticPanel
    • summary
      Helper for _initButton above.   Not sure why it's a separate method.
    • type
      Function
  • dijit._editor.plugins.LinkDialog._checkValues

    • parameters:
      • args: (typeof Object)
        Content being set.
    • summary
      Function to check the values in args and 'fix' them up as needed.
    • tags:
    • type
      Function
  • dijit._editor.plugins.LinkDialog.setValue

    • parameters:
      • args
    • summary
      Callback from the dialog when user presses "set" button.
    • tags: TODO: prevent closing popup if the text is empty
    • type
      Function
  • dijit._editor.plugins.LinkDialog._onCloseDialog

    • summary
      Handler for close event on the dialog
    • type
      Function
  • dijit._editor.plugins.LinkDialog._getCurrentValues

    • parameters:
      • a: (typeof The)
        anchor/link to process for data for the dropdown.
    • returns
      Object;
    • summary
      Over-ride for getting the values to set in the dropdown.
    • tags:
    • type
      Function
  • dijit._editor.plugins.LinkDialog._onOpenDialog

    • summary
      Handler for when the dialog is opened.
      If the caret is currently in a URL then populate the URL's info into the dialog.
    • type
      Function
  • dijit._editor.plugins.LinkDialog._onDblClick

    • parameters:
      • e: (typeof Object)
        The double-click event.
    • summary
      Function to define a behavior on double clicks on the element
      type this dialog edits to select it and pop up the editor
      dialog.
    • tags: protected.
    • type
      Function
  • dijit._editor.plugins.ImgLinkDialog

    • type
      Function
    • chains:
      • dijit._editor.plugins.LinkDialog: (prototype)
      • dijit._editor.plugins.LinkDialog: (call)
    • summary
      This plugin extends LinkDialog and adds in a plugin for handling image links.
      provides the image link dialog.
    • description
      The command provided by this plugin is:
      * insertImage
  • dijit._editor.plugins.ImgLinkDialog.linkDialogTemplate

    • tags:
    • type
      String
    • summary
      Over-ride for template since img dialog doesn't need target that anchor tags may.
  • dijit._editor.plugins.ImgLinkDialog.htmlTemplate

    • tags:
    • type
      String
    • summary
      String used for templating the <img> HTML to insert at the desired point.
  • dijit._editor.plugins.ImgLinkDialog.tag

    • tags:
    • type
      String
    • summary
      Tag used for the link type (img).
  • dijit._editor.plugins.ImgLinkDialog._getCurrentValues

    • parameters:
      • img
    • returns
      Object;
    • summary
      Over-ride for getting the values to set in the dropdown.
      a:
      The anchor/link to process for data for the dropdown.
    • tags:
    • type
      Function
  • dijit._editor.plugins.ImgLinkDialog._isValid

    • summary
      Over-ride for images.  You can have alt text of blank, it is valid.
    • tags:
    • type
      Function
  • dijit._editor.plugins.ImgLinkDialog._connectTagEvents

    • summary
      Over-ridable function that connects tag specific events.
    • type
      Function
  • dijit._editor.plugins.ImgLinkDialog._selectTag

    • parameters:
      • e: (typeof Event)
        The mousedown event.
    • summary
      A simple event handler that lets me select an image if it is clicked on.
      makes it easier to select images in a standard way across browsers.  Otherwise
      selecting an image for edit becomes difficult.
    • tags:
    • type
      Function
  • dijit._editor.plugins.ImgLinkDialog._checkValues

    • parameters:
      • args: (typeof Object)
        Content being set.
    • summary
      Function to check the values in args and 'fix' them up as needed
      (special characters in the url or alt text)
    • tags:
    • type
      Function
  • dijit._editor.plugins.ImgLinkDialog._onDblClick

    • parameters:
      • e: (typeof Object)
        The double-click event.
    • summary
      Function to define a behavior on double clicks on the element
      type this dialog edits to select it and pop up the editor
      dialog.
    • tags: protected.
    • type
      Function
  • dijit._editor.plugins

    • type
      Object
  • dijit._editor

    • type
      Object
  • dijit

    • type
      Object