(schema: Schema, migrate = false)
| 760 | } |
| 761 | |
| 762 | replaceWith(schema: Schema, migrate = false): any { |
| 763 | // reuse the same id? or replaceSelection |
| 764 | schema = Object.assign({}, migrate ? this.export() : {}, schema); |
| 765 | return this.parent?.replaceChild(this, schema); |
| 766 | } |
| 767 | |
| 768 | /** |
| 769 | * 替换子节点 |
no test coverage detected