Remove tiny-markdown-edditor
This commit is contained in:
@@ -4,8 +4,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@icelab/defo": "^0.0.3",
|
"@icelab/defo": "^0.0.3",
|
||||||
"hanami-assets": "^2.1.0-rc.3",
|
"hanami-assets": "^2.1.0-rc.3"
|
||||||
"tiny-markdown-editor": "^0.1.8"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/typography": "^0.5.8",
|
"@tailwindcss/typography": "^0.5.8",
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,29 +1,10 @@
|
|||||||
import "../../../../slices/main/assets/builds/app.css";
|
import "../../../../slices/main/assets/builds/app.css";
|
||||||
import "../css/app.css";
|
import "../css/app.css";
|
||||||
|
|
||||||
import TinyMDE from "tiny-markdown-editor";
|
|
||||||
import defo from "@icelab/defo";
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
document.addEventListener('alpine:init', () => {
|
document.addEventListener('alpine:init', () => {
|
||||||
Alpine.magic('clipboard', () => {
|
Alpine.magic('clipboard', () => {
|
||||||
return subject => navigator.clipboard.writeText(subject)
|
return subject => navigator.clipboard.writeText(subject)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
|
||||||
const views = {
|
|
||||||
markdown: (el, attrs) => {
|
|
||||||
|
|
||||||
var tinyMDE = new TinyMDE.Editor({textarea: attrs.editorId});
|
|
||||||
|
|
||||||
return {
|
|
||||||
update: (newName, oldName) => {},
|
|
||||||
destroy: () => {}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
defo({views});
|
|
||||||
});
|
|
||||||
})();
|
})();
|
12
yarn.lock
12
yarn.lock
@@ -303,11 +303,6 @@ commander@^4.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
|
resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
|
||||||
integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==
|
integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==
|
||||||
|
|
||||||
core-js@^3.6.5:
|
|
||||||
version "3.33.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.33.3.tgz#3c644a323f0f533a0d360e9191e37f7fc059088d"
|
|
||||||
integrity sha512-lo0kOocUlLKmm6kv/FswQL8zbkH7mVsLJ/FULClOhv8WRVmKLVcs6XPNQAzstfeJTCHMyButEwG+z1kHxHoDZw==
|
|
||||||
|
|
||||||
cross-spawn@^7.0.0:
|
cross-spawn@^7.0.0:
|
||||||
version "7.0.3"
|
version "7.0.3"
|
||||||
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
|
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
|
||||||
@@ -897,13 +892,6 @@ thenify-all@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
any-promise "^1.0.0"
|
any-promise "^1.0.0"
|
||||||
|
|
||||||
tiny-markdown-editor@^0.1.8:
|
|
||||||
version "0.1.8"
|
|
||||||
resolved "https://registry.yarnpkg.com/tiny-markdown-editor/-/tiny-markdown-editor-0.1.8.tgz#bef845be1bea105224898a300bb27d0800a87a08"
|
|
||||||
integrity sha512-NQNeVTwAwkzTOyL2KPm6jzpP08ygZ3eK7EQH2XZd5xwRLXuivYHArrGqsTbjfCk1Hla+PAA6uI1Uz5D15CP7uA==
|
|
||||||
dependencies:
|
|
||||||
core-js "^3.6.5"
|
|
||||||
|
|
||||||
to-regex-range@^5.0.1:
|
to-regex-range@^5.0.1:
|
||||||
version "5.0.1"
|
version "5.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
|
resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
|
||||||
|
Reference in New Issue
Block a user