core/OperationBuilder.js
function insert(elem) {
        try {
            $(exports).triggerHandler('insert', [elem]);
        } catch (err) {
            console.error(err);
        }
        var writer = new Writer();
        elem.save(writer);
        _currentOperation.ops.push({op: OP_INSERT, arg: writer.current});
    }
function insert(elem) {
        try {
            $(exports).triggerHandler('insert', [elem]);
        } catch (err) {
            console.error(err);
        }
        var writer = new Writer();
        elem.save(writer);
        _currentOperation.ops.push({op: OP_INSERT, arg: writer.current});
    }
function insert ( elem ) { try { $ ( exports ) . triggerHandler ( 'insert' , [ elem ] ) ; } catch ( err ) { console . error ( err ) ; } var writer = new Writer ( ) ; elem . save ( writer ) ; _currentOperation . ops . push ( { op : OP_INSERT , arg : writer . current } ) ; }
Insert an element.

@param {Element} elem
Insert an element .