(html)
| 140 | } |
| 141 | |
| 142 | replaceHTML(html) { |
| 143 | const document = HTMLParser.parse(html).getDocument().copyUsingObjectsFromDocument(this.document) |
| 144 | const locationRange = this.getLocationRange({ strict: false }) |
| 145 | const selectedRange = this.document.rangeFromLocationRange(locationRange) |
| 146 | this.setDocument(document) |
| 147 | return this.setSelection(selectedRange) |
| 148 | } |
| 149 | |
| 150 | insertFile(file) { |
| 151 | return this.insertFiles([ file ]) |
no test coverage detected