mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 16:06:23 +00:00
14 lines
373 B
JavaScript
14 lines
373 B
JavaScript
import SuttyEditor from "@suttyweb/editor";
|
|
|
|
import "@suttyweb/editor/dist/style.css";
|
|
|
|
document.addEventListener("turbolinks:load", () => {
|
|
document.querySelectorAll(".new-editor").forEach((editorContainer) => {
|
|
new SuttyEditor({
|
|
target: editorContainer,
|
|
props: {
|
|
textareaEl: editorContainer.querySelector("textarea"),
|
|
},
|
|
});
|
|
});
|
|
});
|