SimonMeskens / doodlit-editor

A tiny HTML5 editor
https://simonmeskens.github.io/doodlit-editor/
MIT License
2 stars 0 forks source link
editor html5

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>