NOBUG: Fixed file access permissions
[moodle.git] / lib / yuilib / 3.13.0 / editor-inline / editor-inline.js
bloba97354db9738d072d72eed034d46259c7e8d9936
1 /*
2 YUI 3.13.0 (build 508226d)
3 Copyright 2013 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
6 */
8 YUI.add('editor-inline', function (Y, NAME) {
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  */
26 var InlineEditor = function() {
27     InlineEditor.superclass.constructor.apply(this, arguments);
30 Y.extend(InlineEditor, Y.EditorBase, {
31     initializer: function() {
32         this.plug(Y.Plugin.ContentEditable);
33     }
34 });
36 Y.InlineEditor = InlineEditor;
38 }, '3.13.0', {"requires": ["editor-base", "content-editable"]});