Fix insertEmbed doc string.
This commit is contained in:
parent
2809ab1dd3
commit
b01247bff7
@ -396,8 +396,7 @@ YTextEvents compute changes as deltas.
|
||||
</dd>
|
||||
<b><code>insertEmbed(index:number, embed:Object<string,string>, [attributes:TextAttributes])</code></b>
|
||||
<dd>
|
||||
Insert a string at <var>index</var> and assign formatting attributes to it.
|
||||
<pre>ytext.insert(0, 'bold text', { bold: true })</pre>
|
||||
Insert an embed at <var>index</var> and assign formatting attributes to it.
|
||||
</dd>
|
||||
<b><code>delete(index:number, length:number)</code></b>
|
||||
<dd></dd>
|
||||
|
Loading…
x
Reference in New Issue
Block a user