Merge pull request #153 from calibr/124-text-embeds

process embeds in YText.toDelta
This commit is contained in:
Kevin Jahns
2019-05-25 13:04:10 +02:00
committed by GitHub
2 changed files with 20 additions and 0 deletions

View File

@@ -782,6 +782,13 @@ export class YText extends AbstractType {
// @ts-ignore
str += n.string
break
case ItemEmbed:
packStr()
ops.push({
// @ts-ignore item is ItemFormat
insert: n.embed
})
break
case ItemFormat:
packStr()
// @ts-ignore