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

dojox/editor/plugins/PasteFromWord.js

  • Provides:

    • dojox.editor.plugins.PasteFromWord
  • Requires:

    • dojo.string in common
    • dijit._editor._Plugin in common
    • dijit.form.Button in common
    • dijit.Dialog in common
    • dojo.i18n in common
    • dojox.html.format in common
  • dojox.editor.plugins.PasteFromWord

    • type
      Function
    • chains:
      • dijit._editor._Plugin: (prototype)
      • dijit._editor._Plugin: (call)
    • summary
      This plugin provides PasteFromWord cabability to the editor.  When
      clicked, a dialog opens with a spartan RichText instance to paste
      word content into via the keyboard commands.  The contents are
      then filtered to remove word style classes and other meta-junk
      that tends to cause issues.
  • dojox.editor.plugins.PasteFromWord.iconClassPrefix

    • tags: const
    • type
      String
    • summary
      The CSS class name for the button node is formed from <code>iconClassPrefix</code>
      and <code>command</code>
  • dojox.editor.plugins.PasteFromWord.width

    • tags: public
    • type
      String
    • summary
      The width to use for the rich text area in the copy/pate dialog, in px.  Default is 400px.
  • dojox.editor.plugins.PasteFromWord.height

    • tags: public
    • type
      String
    • summary
      The height to use for the rich text area in the copy/pate dialog, in px.  Default is 300px.
  • dojox.editor.plugins.PasteFromWord._template

    • type
      Object
  • dojox.editor.plugins.PasteFromWord._filters

    • tags:
    • type
      Array
    • summary
      The filters is an array of regular expressions to try and strip out a lot
      of style data MS Word likes to insert when pasting into a contentEditable.
      Prettymuch all of it is junk and not good html.  The hander is a place to put a function
      for match handling.  In most cases, it just handles it as empty string.  But the option is
      there for more complex handling.
  • dojox.editor.plugins.PasteFromWord._initButton

    • summary
      Over-ride for creation of the save button.
    • type
      Function
  • dojox.editor.plugins.PasteFromWord.button

    • type
      Object
  • dojox.editor.plugins.PasteFromWord._uId

    • type
      Object
  • dojox.editor.plugins.PasteFromWord._dialog

    • type
      Object
  • dojox.editor.plugins.PasteFromWord.updateState

    • summary
      Over-ride for button state control for disabled to work.
    • type
      Function
  • dojox.editor.plugins.PasteFromWord.setEditor

    • parameters:
      • editor: (typeof Object)
        The editor to configure for this plugin to use.
    • summary
      Over-ride for the setting of the editor.
    • type
      Function
  • dojox.editor.plugins.PasteFromWord.editor

  • dojox.editor.plugins.PasteFromWord.setEditor.editor

    • type
      Object
    • summary
      The editor to configure for this plugin to use.
  • dojox.editor.plugins.PasteFromWord._openDialog

    • summary
      Function to trigger opening the copy dialog.
    • tags:
    • type
      Function
  • dojox.editor.plugins.PasteFromWord._paste

    • summary
      Function to handle setting the contents of the copy from dialog
      into the editor.
    • tags:
    • type
      Function
  • dojox.editor.plugins.PasteFromWord._cancel

    • summary
      Function to handle cancelling setting the contents of the
      copy from dialog into the editor.
    • tags:
    • type
      Function
  • dojox.editor.plugins.PasteFromWord._clearDialog

    • summary
      simple function to cleat the contents when hide is calledon dialog
      copy from dialog into the editor.
    • tags:
    • type
      Function
  • dojox.editor.plugins.PasteFromWord.destroy

    • tags: public
    • type
      Function
  • dojox.editor.plugins

    • type
      Object
  • dojox.editor

    • type
      Object
  • dojox

    • type
      Object