loadHTML EDITOR

loadHTML API is used to load HTML string into INK Editor. It overwrites the current content in the Editor.

Syntax

loadHTML(html: String)

Example

1
2
3
4
5
6
7
8
9
import INKAPI from './inkapi.js'

INKAPI.ready(() => {

  const EDITOR = INKAPI.editor;

  EDITOR.loadHTML("<h1>This is my title</h1>");

});

Parameters

Name

Type

Description

html

String

Required. HTML string to be loaded in the Editor.