Have got text transformations working

This commit is contained in:
Leon Mika 2025-09-06 11:26:54 +10:00
parent 9f2fa96b92
commit 41daf7cfc9
14 changed files with 178 additions and 17 deletions

View file

@ -5,7 +5,8 @@ import {EditorView, basicSetup} from "codemirror";
import {keymap} from "@codemirror/view";
import { Application } from "@hotwired/stimulus";
import CommandsController from "./controllers/commands_controller.js";
import { textProcessor } from "./services.js";
import {CommandsController} from "./controllers/commands_controller.js";
const view = new EditorView({
parent: document.querySelector("#app"),
@ -27,4 +28,6 @@ const view = new EditorView({
window.Stimulus = Application.start()
Stimulus.register("commands", CommandsController);
textProcessor.setCodeMirrorEditor(view);
view.focus();