dojox/editor/plugins/Smiley.js

  • Provides:

    • dojox.editor.plugins.Smiley
  • dojox.editor.plugins.Smiley

    • type
      Function
    • chains:
      • dijit._editor._Plugin: (prototype)
      • dijit._editor._Plugin: (call)
    • summary
      This plugin allows the user to select from emoticons or "smileys"
      to insert at the current cursor position.
    • description
      The commands provided by this plugin are:
      * smiley - inserts the selected emoticon
  • dojox.editor.plugins.Smiley.iconClassPrefix

    • tags: const
    • type
      String
    • summary
      The CSS class name for the button node is formed from `iconClassPrefix` and `command`
  • dojox.editor.plugins.Smiley.emoticonMarker

    • summary
  • dojox.editor.plugins.Smiley.emoticonImageClass

    • summary
  • dojox.editor.plugins.Smiley._initButton

    • type
      Function
    • source: [view]
        this.dropDown = new dojox.editor.plugins._SmileyPalette();
        this.connect(this.dropDown, "onChange", function(ascii){
         this.button.closeDropDown();
         this.editor.focus();
         //
         ascii = this.emoticonMarker.charAt(0) + ascii + this.emoticonMarker.charAt(1);
         this.editor.execCommand("inserthtml", ascii);
        });
        this.i18n = dojo.i18n.getLocalization("dojox.editor.plugins", "Smiley");
        this.button = new dijit.form.DropDownButton({
         label: this.i18n.smiley,
         showLabel: false,
         iconClass: this.iconClassPrefix + " " + this.iconClassPrefix + "Smiley",
         tabIndex: "-1",
         dropDown: this.dropDown
        });
        this.emoticonImageRegexp = new RegExp("class=(\"|\')" + this.emoticonImageClass + "(\"|\')");
    • summary
  • dojox.editor.plugins.Smiley.dropDown

    • summary
  • dojox.editor.plugins.Smiley.i18n

    • summary
  • dojox.editor.plugins.Smiley.button

    • summary
  • dojox.editor.plugins.Smiley.emoticonImageRegexp

    • summary
  • this.editor

    • summary
  • emoticon

    • summary
  • o.plugin

    • summary
  • dojox.editor.plugins

    • type
      Object
    • summary
  • dojox.editor

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary