mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 23:46:22 +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"),
|
|
},
|
|
});
|
|
});
|
|
});
|