MMEditor

MMEditor Skill

Use this skill for tasks inside projects that depend on mmeditor, or when the user wants help building flows with MMEditor.

What To Do

Entry Points

Working Rules

Typical Pattern

import MMEditor from "mmeditor";

const editor = new MMEditor({
  dom: document.getElementById("root") as HTMLDivElement,
  showMiniMap: true,
});

await editor.schema.setInitData({ nodes: [], lines: [] });
editor.schema.format();
editor.controller.autoFit();

When You Need More Detail