Fix admin assets
This commit is contained in:
23
slices/admin/assets/js/app.js
Normal file
23
slices/admin/assets/js/app.js
Normal file
@@ -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});
|
||||
});
|
||||
})();
|
Reference in New Issue
Block a user