diff --git a/README.md b/README.md index 5d37929e..e923948f 100644 --- a/README.md +++ b/README.md @@ -367,14 +367,14 @@ YTextEvents compute changes as deltas.

const ytext = new Y.Text()
- insert(index:number, content:string, [formattingAttributes:Object<string,string>]) + insert(index:number, content:string, [formattingAttributes:Object<string,string>]):Y.Text
Insert a string at index and assign formatting attributes to it.
ytext.insert(0, 'bold text', { bold: true })
- delete(index:number, length:number) + delete(index:number, length:number):Y.Text
- format(index:number, length:number, formattingAttributes:Object<string,string>) + format(index:number, length:number, formattingAttributes:Object<string,string>):Y.Text
Assign formatting attributes to a range in the text
applyDelta(delta)
See Quill Delta