[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/yuilib/3.17.2/editor-inline/ -> editor-inline-debug.js (source)

   1  /*
   2  YUI 3.17.2 (build 9c3c78e)
   3  Copyright 2014 Yahoo! Inc. All rights reserved.
   4  Licensed under the BSD License.
   5  http://yuilibrary.com/license/
   6  */
   7  
   8  YUI.add('editor-inline', function (Y, NAME) {
   9  
  10  /**
  11   * Base class for InlineEditor. Instead to use an iframe, uses content editable element via ContentEditable Plugin.
  12   *
  13   *      var editor = new Y.InlineEditor({
  14   *          content: 'Foo'
  15   *      });
  16   *      editor.render('#demo');
  17   *
  18   * @class InlineEditor
  19   * @extends EditorBase
  20   * @module editor
  21   * @main editor
  22   * @submodule editor-inline
  23   * @constructor
  24   */
  25  
  26  var InlineEditor = function() {
  27      InlineEditor.superclass.constructor.apply(this, arguments);
  28  };
  29  
  30  Y.extend(InlineEditor, Y.EditorBase, {
  31      initializer: function() {
  32          this.plug(Y.Plugin.ContentEditable);
  33      }
  34  });
  35  
  36  Y.InlineEditor = InlineEditor;
  37  
  38  }, '3.17.2', {"requires": ["editor-base", "content-editable"]});


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1