UNPKG

logoots-structs

Version:

Provides several data structures to represent a text using a ropes-like structure and manipulating it

11 lines (8 loc) 247 B
var TextInsert = function (offset, content)  { this.offset = offset || 0; this.content = content || null; }; TextInsert.prototype.applyTo = function (doc) { return doc.insertLocal(this.offset, this.content); }; module.exports = TextInsert;