ks002
This commit is contained in:
24
cdTMP/package-lock.json
generated
24
cdTMP/package-lock.json
generated
@@ -35,7 +35,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"@types/node": "^22.7.5",
|
||||
"@types/node": "^22.7.6",
|
||||
"@types/nprogress": "^0.2.3",
|
||||
"@types/qs": "^6.9.16",
|
||||
"@vitejs/plugin-vue": "^5.1.4",
|
||||
@@ -43,7 +43,7 @@
|
||||
"@vue/babel-plugin-jsx": "^1.2.5",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"browserslist": "^4.24.0",
|
||||
"caniuse-lite": "^1.0.30001668",
|
||||
"caniuse-lite": "^1.0.30001669",
|
||||
"eslint": "^9.12.0",
|
||||
"eslint-plugin-vue": "^9.29.0",
|
||||
"less": "^4.2.0",
|
||||
@@ -51,7 +51,7 @@
|
||||
"postcss": "^8.4.47",
|
||||
"prettier": "^3.3.3",
|
||||
"rollup-plugin-visualizer": "^5.12.0",
|
||||
"tailwindcss": "^3.4.13",
|
||||
"tailwindcss": "^3.4.14",
|
||||
"typescript": "^5.6.3",
|
||||
"vite": "^5.4.9"
|
||||
}
|
||||
@@ -1546,9 +1546,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "22.7.5",
|
||||
"resolved": "https://registry.npmmirror.com/@types/node/-/node-22.7.5.tgz",
|
||||
"integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==",
|
||||
"version": "22.7.6",
|
||||
"resolved": "https://registry.npmmirror.com/@types/node/-/node-22.7.6.tgz",
|
||||
"integrity": "sha512-/d7Rnj0/ExXDMcioS78/kf1lMzYk4BZV8MZGTBKzTGZ6/406ukkbYlIsZmMPhcR5KlkunDHQLrtAVmSq7r+mSw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
@@ -2360,9 +2360,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/caniuse-lite": {
|
||||
"version": "1.0.30001668",
|
||||
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001668.tgz",
|
||||
"integrity": "sha512-nWLrdxqCdblixUO+27JtGJJE/txpJlyUy5YN1u53wLZkP0emYCo5zgS6QYft7VUYR42LGgi/S5hdLZTrnyIddw==",
|
||||
"version": "1.0.30001669",
|
||||
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001669.tgz",
|
||||
"integrity": "sha512-DlWzFDJqstqtIVx1zeSpIMLjunf5SmwOw0N2Ck/QSQdS8PLS4+9HrLaYei4w8BIAL7IB/UEDu889d8vhCTPA0w==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
@@ -5240,9 +5240,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/tailwindcss": {
|
||||
"version": "3.4.13",
|
||||
"resolved": "https://registry.npmmirror.com/tailwindcss/-/tailwindcss-3.4.13.tgz",
|
||||
"integrity": "sha512-KqjHOJKogOUt5Bs752ykCeiwvi0fKVkr5oqsFNt/8px/tA8scFPIlkygsf6jXrfCqGHz7VflA6+yytWuM+XhFw==",
|
||||
"version": "3.4.14",
|
||||
"resolved": "https://registry.npmmirror.com/tailwindcss/-/tailwindcss-3.4.14.tgz",
|
||||
"integrity": "sha512-IcSvOcTRcUtQQ7ILQL5quRDg7Xs93PdJEk1ZLbhhvJc7uj/OAhYOnruEiwnGgBvUtaUAJ8/mhSw1o8L2jCiENA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"@types/node": "^22.7.5",
|
||||
"@types/node": "^22.7.6",
|
||||
"@types/nprogress": "^0.2.3",
|
||||
"@types/qs": "^6.9.16",
|
||||
"@vitejs/plugin-vue": "^5.1.4",
|
||||
@@ -46,7 +46,7 @@
|
||||
"@vue/babel-plugin-jsx": "^1.2.5",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"browserslist": "^4.24.0",
|
||||
"caniuse-lite": "^1.0.30001668",
|
||||
"caniuse-lite": "^1.0.30001669",
|
||||
"eslint": "^9.12.0",
|
||||
"eslint-plugin-vue": "^9.29.0",
|
||||
"less": "^4.2.0",
|
||||
@@ -54,7 +54,7 @@
|
||||
"postcss": "^8.4.47",
|
||||
"prettier": "^3.3.3",
|
||||
"rollup-plugin-visualizer": "^5.12.0",
|
||||
"tailwindcss": "^3.4.13",
|
||||
"tailwindcss": "^3.4.14",
|
||||
"typescript": "^5.6.3",
|
||||
"vite": "^5.4.9"
|
||||
}
|
||||
|
||||
@@ -158,6 +158,8 @@ const initConfig = reactive({
|
||||
// 1.自定义粘贴过滤器函数,args.content就是粘贴内容
|
||||
paste_preprocess: function (plugin, args) {
|
||||
let content = args.content
|
||||
// 去掉<span **></span>这个地方修改比较大注意
|
||||
content = content.replace(/<span[^>]*>/g, "").replace(/<\/span>/g, "")
|
||||
const parser = new DOMParser()
|
||||
const doc = parser.parseFromString(content, "text/html")
|
||||
// 遍历一级元素
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user