diff --git a/slices/admin/assets/css/app.css b/slices/admin/assets/css/app.css new file mode 100644 index 0000000..b5ed0f7 --- /dev/null +++ b/slices/admin/assets/css/app.css @@ -0,0 +1,5 @@ +body { + background-color: #fff; + color: #000; + font-family: sans-serif; +} diff --git a/slices/admin/assets/js/app.js b/slices/admin/assets/js/app.js new file mode 100644 index 0000000..6309fe9 --- /dev/null +++ b/slices/admin/assets/js/app.js @@ -0,0 +1,23 @@ +import "../../../../app/assets/builds/tailwind.css"; +import "../css/app.css"; + +import TinyMDE from "tiny-markdown-editor"; +import defo from "@icelab/defo"; + +(function() { + document.addEventListener("DOMContentLoaded", function () { + const views = { + markdown: (el, attrs) => { + + var tinyMDE = new TinyMDE.Editor({textarea: attrs.editorId}); + + return { + update: (newName, oldName) => {}, + destroy: () => {} + }; + } + }; + + defo({views}); + }); +})(); \ No newline at end of file