From b01247bff75f8320b304c44c757638f370c40820 Mon Sep 17 00:00:00 2001 From: "Brian E. Granger" Date: Sun, 18 Oct 2020 09:35:17 -0700 Subject: [PATCH] Fix insertEmbed doc string. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index b35e6a09..cb67d2a3 100644 --- a/README.md +++ b/README.md @@ -396,8 +396,7 @@ YTextEvents compute changes as deltas. insertEmbed(index:number, embed:Object<string,string>, [attributes:TextAttributes])
- Insert a string at index and assign formatting attributes to it. -
ytext.insert(0, 'bold text', { bold: true })
+ Insert an embed at index and assign formatting attributes to it.
delete(index:number, length:number)