* Inserts new content at an index. * * Important: This function expects an array of content. Not just a content * object. The reason for this "weirdness" is that inserting several elements * is very efficient when it is done as a single operation. * * @example * // Insert chara
(index, content, format)
| 1179 | * @param {delta.FormattingAttributes} [format] |
| 1180 | */ |
| 1181 | insert (index, content, format) { |
| 1182 | this.applyDelta(delta.create().retain(index).insert(/** @type {any} */ (content), format)) |
| 1183 | } |
| 1184 | |
| 1185 | /** |
| 1186 | * Inserts new content at an index. |
no test coverage detected