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/ViewSource.js

  • Provides:

    • dijit._editor.plugins.ViewSource
  • Requires:

    • dojo.window in common
    • dojo.i18n in common
    • dijit._editor._Plugin in common
    • dijit.form.Button in common
  • dijit._editor.plugins.ViewSource

    • type
      Function
    • chains:
      • dijit._editor._Plugin: (prototype)
      • dijit._editor._Plugin: (call)
    • summary
      This plugin provides a simple view source capability.  When view
      source mode is enabled, it disables all other buttons/plugins on the RTE.
      It also binds to the hotkey: CTRL-SHIFT-F11 for toggling ViewSource mode.
  • dijit._editor.plugins.ViewSource.stripScripts

    • tags: public
    • type
      Boolean
    • summary
      Boolean flag used to indicate if script tags should be stripped from the document.
      Defaults to true.
  • dijit._editor.plugins.ViewSource.stripComments

    • tags: public
    • type
      Boolean
    • summary
      Boolean flag used to indicate if iframe tags should be stripped from the document.
      Defaults to true.
  • dijit._editor.plugins.ViewSource.stripIFrames

    • type
      Object
  • dijit._editor.plugins.ViewSource.readOnly

    • tags: const
    • type
      Boolean
    • summary
      Boolean flag used to indicate if the source view should be readonly or not.
      Cannot be changed after initialization of the plugin.
      Defaults to false.
  • dijit._editor.plugins.ViewSource._fsPlugin

    • tags:
    • type
      Object
    • summary
      Reference to a registered fullscreen plugin so that viewSource knows
      how to scale.
  • dijit._editor.plugins.ViewSource.toggle

    • summary
      Function to allow programmatic toggling of the view.
    • type
      Function
  • dijit._editor.plugins.ViewSource._vsFocused

    • type
      Object
  • dijit._editor.plugins.ViewSource._initButton

    • summary
      Over-ride for creation of the resize button.
    • type
      Function
  • dijit._editor.plugins.ViewSource.editor

  • dijit._editor.plugins.ViewSource.button

    • type
      Object
  • dijit._editor.plugins.ViewSource._ieFixNode

    • type
      Object
  • dijit._editor.plugins.ViewSource.setEditor

    • parameters:
      • editor: (typeof dijit.Editor)
        Object The editor object to attach the print capability to.
    • summary
      Tell the plugin which Editor it is associated with.
    • type
      Function
  • dijit._editor.plugins.ViewSource.setEditor.editor

    • type
      Object
    • summary
      The editor object to attach the print capability to.
  • dijit._editor.plugins.ViewSource._showSource

    • parameters:
      • source: (typeof boolean)
        Boolean value indicating if it should be in source mode or not.
    • summary
      Function to toggle between the source and RTE views.
    • tags:
    • type
      Function
  • dijit._editor.plugins.ViewSource.editor._plugins

  • dijit._editor.plugins.ViewSource._sourceShown

  • dijit._editor.plugins.ViewSource.editor._sourceQueryCommandEnabled

  • dijit._editor.plugins.ViewSource.editor.queryCommandEnabled

    • parameters:
      • cmd
    • type
      Function
  • dijit._editor.plugins.ViewSource._pluginList

    • type
      Array
  • dijit._editor.plugins.ViewSource._fsPlugin._getAltViewNode

    • type
      Function
  • dijit._editor.plugins.ViewSource.sourceArea.value

  • dijit._editor.plugins.ViewSource._resizeHandle

    • type
      Object
  • dijit._editor.plugins.ViewSource.editor.__oldGetValue

  • dijit._editor.plugins.ViewSource.editor.getValue

    • type
      Object
  • dijit._editor.plugins.ViewSource.updateState

    • summary
      Over-ride for button state control for disabled to work.
    • type
      Function
  • dijit._editor.plugins.ViewSource._resize

    • summary
      Internal function to resize the source view
    • tags:
    • type
      Function
  • dijit._editor.plugins.ViewSource._createSourceView

    • summary
      Internal function for creating the source view area.
    • tags:
    • type
      Function
  • dijit._editor.plugins.ViewSource.sourceArea

    • type
      Object
  • dijit._editor.plugins.ViewSource._readOnly

    • type
      Object
  • dijit._editor.plugins.ViewSource.editor._viewsource_oldFocus

  • dijit._editor.plugins.ViewSource.editor.focus

    • type
      Function
  • dijit._editor.plugins.ViewSource._fsPlugin._viewsource_getAltViewNode

  • dijit._editor.plugins.ViewSource._stripScripts

    • parameters:
      • html: (typeof String)
        The HTML to filter
    • summary
      Strips out script tags from the HTML used in editor.
    • tags:
    • type
      Function
  • dijit._editor.plugins.ViewSource._stripComments

    • parameters:
      • html: (typeof String)
        The HTML to filter
    • summary
      Strips out comments from the HTML used in editor.
    • tags:
    • type
      Function
  • dijit._editor.plugins.ViewSource._stripIFrames

    • parameters:
      • html: (typeof String)
        The HTML to filter
    • summary
      Strips out iframe tags from the content, to avoid iframe script
      style injection attacks.
    • tags:
    • type
      Function
  • dijit._editor.plugins.ViewSource._filter

    • parameters:
      • html: (typeof String)
        The HTML to filter
    • summary
      Internal function to perform some filtering on the HTML.
    • tags:
    • type
      Function
  • dijit._editor.plugins.ViewSource.setSourceAreaCaret

    • summary
      Internal function to set the caret in the sourceArea
      to 0x0
    • type
      Function
  • dijit._editor.plugins.ViewSource.destroy

    • summary
      Over-ride to remove the node used to correct for IE's
      zoom bug.
    • type
      Function
  • dijit._editor.plugins

    • type
      Object
  • dijit._editor

    • type
      Object
  • dijit

    • type
      Object