doodlit-editor

Doodlit Editor

A tiny HTML5 editor. Try out the demo!

API Documentation

createEditors(selector, options)

Creates Doodlit editors for the specified selector.

Example usage (theme file is optional):

<link rel="stylesheet" type="text/css" href="https://simonmeskens.github.io/doodlit-editor/src/theme.css" />
<link rel="stylesheet" type="text/css" href="https://simonmeskens.github.io/doodlit-editor/src/editor.css" />
<script type="module">
  import { createEditors } from "https://simonmeskens.github.io/doodlit-editor/src/editor.js";
  import { highlight as microlight } from "./microlight.js";

  createEditors(".code-editor", { highlight: microlight });
</script>