Have got text transformations working
This commit is contained in:
parent
9f2fa96b92
commit
41daf7cfc9
14 changed files with 178 additions and 17 deletions
|
|
@ -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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue