Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

selective-undo-text

A Selective Undo library for text editing.

Demo

http://codepen.io/ktsn/pen/qZxdaY

Usage

import { Buffer } from 'selective-undo-text';

const buf = Buffer('Initial Text');

buf.addText(7, ' Input');
console.log(buf.text) // Initial Input Text

buf.removeText(0, 8);
console.log(buf.text); // Input Text

buf.undo(0);
console.log(buf.text); //  Text

License

MIT

About

A Selective Undo library for text editing

Resources

License

Packages

No packages published
You can’t perform that action at this time.