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

  • Provides:

    • dojox.editor.plugins.NormalizeStyle
  • Requires:

    • dijit._editor.html in common
    • dijit._editor._Plugin in common
  • dojox.editor.plugins.NormalizeStyle

    • type
      Function
    • chains:
      • dijit._editor._Plugin: (prototype)
      • dijit._editor._Plugin: (call)
    • summary
      This plugin provides NormalizeStyle cabability to the editor.  It is
      a headless plugin that tries to normalize how content is styled when
      it comes out of th editor ('b' or css).   It also auto-converts
      incoming content to the proper one expected by the browser as well so
      that the native styling buttons work.
  • dojox.editor.plugins.NormalizeStyle.mode

    • type
      String
  • dojox.editor.plugins.NormalizeStyle.condenseSpans

    • type
      Object
  • dojox.editor.plugins.NormalizeStyle.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.NormalizeStyle.editor

  • dojox.editor.plugins.NormalizeStyle._browserFilter

  • dojox.editor.plugins.NormalizeStyle.editor._oldInsertHtmlImpl

  • dojox.editor.plugins.NormalizeStyle.editor._inserthtmlImpl

    • type
      Object
  • dojox.editor.plugins.NormalizeStyle.setEditor.editor

    • type
      Object
    • summary
      The editor to configure for this plugin to use.
  • dojox.editor.plugins.NormalizeStyle._convertToSemantic

    • parameters:
      • node: (typeof DOMNode)
        The node to process.
    • summary
      A function to convert the HTML structure of 'node' into
      semantic tags where possible.
    • tags:
    • type
      Function
  • dojox.editor.plugins.NormalizeStyle.editor.window

  • dojox.editor.plugins.NormalizeStyle._normalizeTags

    • parameters:
      • node: (typeof The)
        node to search from.
    • summary
      A function to handle normalizing certain tag types contained under 'node'
    • tags: Protected.
    • type
      Function
  • dojox.editor.plugins.NormalizeStyle._convertToCss

    • parameters:
      • node: (typeof DOMNode)
        The node to process
    • summary
      A function to convert the HTML structure of 'node' into
      css span styles around text instead of semantic tags.
      Note:  It does not do compression of spans together.
    • tags:
    • type
      Function
  • dojox.editor.plugins.NormalizeStyle._condenseSpans

    • parameters:
      • node: (typeof The)
        node (and its children), to process.
    • summary
      Method to condense spans if you end up with multi-wrapping from
      from converting b, i, u, to span nodes.
    • tags:
    • type
      Function
  • dojox.editor.plugins.NormalizeStyle._isInline

    • parameters:
      • tag: (typeof The)
        tag to examine
    • summary
      Function to determine if the current tag is an inline
      element that does formatting, as we don't want to
      try to combine inlines with divs on styles.
    • tags:
    • type
      Function
  • dojox.editor.plugins.NormalizeStyle._inserthtmlImpl

    • parameters:
      • html: (typeof The)
        HTML string to insert.
    • summary
      Function to trap and over-ride the editor inserthtml implementation
      to try and filter it to match the editor's internal styling mode.
      Helpful for plugins like PasteFromWord, in that it extra-filters
      and normalizes the input if it can.
    • tags:
    • type
      Function
  • dojox.editor.plugins

    • type
      Object
  • dojox.editor

    • type
      Object
  • dojox

    • type
      Object