Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
YUI.add('editor-inline', function (Y, NAME) {
2
 
3
/**
4
 * Base class for InlineEditor. Instead to use an iframe, uses content editable element via ContentEditable Plugin.
5
 *
6
 *      var editor = new Y.InlineEditor({
7
 *          content: 'Foo'
8
 *      });
9
 *      editor.render('#demo');
10
 *
11
 * @class InlineEditor
12
 * @extends EditorBase
13
 * @module editor
14
 * @main editor
15
 * @submodule editor-inline
16
 * @constructor
17
 */
18
 
19
var InlineEditor = function() {
20
    InlineEditor.superclass.constructor.apply(this, arguments);
21
};
22
 
23
Y.extend(InlineEditor, Y.EditorBase, {
24
    initializer: function() {
25
        this.plug(Y.Plugin.ContentEditable);
26
    }
27
});
28
 
29
Y.InlineEditor = InlineEditor;
30
 
31
 
32
}, '3.18.1', {"requires": ["editor-base", "content-editable"]});