v13 api docs

This commit is contained in:
Kevin Jahns
2019-04-28 02:37:39 +02:00
parent 1417470156
commit c9dda245bf
11 changed files with 391 additions and 346 deletions

View File

@@ -24,7 +24,7 @@ export class YXmlText extends YText {
*
* @public
*/
toDom (_document = document, hooks, binding) {
toDOM (_document = document, hooks, binding) {
const dom = _document.createTextNode(this.toString())
if (binding !== undefined) {
binding._createAssociation(dom, this)
@@ -32,7 +32,7 @@ export class YXmlText extends YText {
return dom
}
toDomString () {
toString () {
// @ts-ignore
return this.toDelta().map(delta => {
const nestedNodes = []
@@ -66,6 +66,10 @@ export class YXmlText extends YText {
}).join('')
}
toJSON () {
return this.toString()
}
/**
* @param {encoding.Encoder} encoder
*