MCPcopy
hub / github.com/codex-team/editor.js / renderFromHTML

Method renderFromHTML

src/components/modules/api/blocks.ts:227–231  ·  view source on GitHub ↗

* Render passed HTML string * * @param {string} data - HTML string to render * @returns {Promise }

(data: string)

Source from the content-addressed store, hash-verified

225 * @returns {Promise<void>}
226 */
227 public async renderFromHTML(data: string): Promise<void> {
228 await this.Editor.BlockManager.clear();
229
230 return this.Editor.Paste.processText(data, true);
231 }
232
233 /**
234 * Stretch Block's content

Callers 1

methodsMethod · 0.95

Calls 2

processTextMethod · 0.80
clearMethod · 0.65

Tested by

no test coverage detected