Skip to main content

Custom editors initialization

These examples show how to initialize editors in a custom way and feed them with default values from arbitrary sources. Note that these examples were chosen to be self-contained, not perfect. In reality, you cannot reliably store arbitrary HTML in an existing HTML file. For example, the </script> string will break storage method shown here. To be able to use a truly arbitrary HTML, the best is to fetch it from a remote source.

Live demos

Custom editor creator

Here we are using a custom editor creator to customize initialized editors. Additionally, we pull default values from other elements.

Intiantiating editors manually

Alternatively, editors can be initialized manually.