@lesjoursfr/edith 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +26 -28
- package/src/core/dom.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lesjoursfr/edith",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Simple WYSIWYG editor.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "lesjoursfr/edith",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"type": "module",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"freshlock": "rm -rf node_modules/ && rm .yarn/install-state.gz && rm -r .yarn/cache/ && rm yarn.lock && yarn",
|
|
28
|
-
"stylelint-check": "stylelint-config-prettier-check",
|
|
29
28
|
"eslint-check": "eslint-config-prettier src/index.js",
|
|
30
29
|
"check-js": "eslint . --ext .js",
|
|
31
30
|
"check-sass": "stylelint **/*.scss",
|
|
@@ -45,40 +44,39 @@
|
|
|
45
44
|
"editor"
|
|
46
45
|
],
|
|
47
46
|
"devDependencies": {
|
|
48
|
-
"@babel/core": "^7.
|
|
49
|
-
"@babel/preset-env": "^7.
|
|
50
|
-
"@codemirror/lang-html": "^6.4.
|
|
51
|
-
"@fortawesome/fontawesome-free": "^6.
|
|
52
|
-
"@popperjs/core": "^2.11.
|
|
53
|
-
"ava": "^5.
|
|
47
|
+
"@babel/core": "^7.21.4",
|
|
48
|
+
"@babel/preset-env": "^7.21.4",
|
|
49
|
+
"@codemirror/lang-html": "^6.4.3",
|
|
50
|
+
"@fortawesome/fontawesome-free": "^6.4.0",
|
|
51
|
+
"@popperjs/core": "^2.11.7",
|
|
52
|
+
"ava": "^5.2.0",
|
|
54
53
|
"babel-loader": "^9.1.2",
|
|
55
54
|
"codemirror": "^6.0.1",
|
|
56
55
|
"css-loader": "^6.7.3",
|
|
57
|
-
"eslint": "^8.
|
|
58
|
-
"eslint-config-prettier": "^8.
|
|
56
|
+
"eslint": "^8.39.0",
|
|
57
|
+
"eslint-config-prettier": "^8.8.0",
|
|
59
58
|
"eslint-config-standard": "^17.0.0",
|
|
60
59
|
"eslint-plugin-import": "^2.27.5",
|
|
61
|
-
"eslint-plugin-n": "^15.
|
|
60
|
+
"eslint-plugin-n": "^15.7.0",
|
|
62
61
|
"eslint-plugin-promise": "^6.1.1",
|
|
63
|
-
"jsdom": "^21.1.
|
|
64
|
-
"mini-css-extract-plugin": "^2.7.
|
|
65
|
-
"postcss": "^8.4.
|
|
66
|
-
"prettier": "^2.8.
|
|
67
|
-
"sass": "^1.
|
|
68
|
-
"sass-loader": "^13.2.
|
|
69
|
-
"style-loader": "^3.3.
|
|
70
|
-
"stylelint": "^
|
|
71
|
-
"stylelint-config-
|
|
72
|
-
"
|
|
73
|
-
"webpack": "^5.
|
|
74
|
-
"webpack-
|
|
75
|
-
"webpack-dev-server": "^4.11.1"
|
|
62
|
+
"jsdom": "^21.1.1",
|
|
63
|
+
"mini-css-extract-plugin": "^2.7.5",
|
|
64
|
+
"postcss": "^8.4.23",
|
|
65
|
+
"prettier": "^2.8.7",
|
|
66
|
+
"sass": "^1.62.1",
|
|
67
|
+
"sass-loader": "^13.2.2",
|
|
68
|
+
"style-loader": "^3.3.2",
|
|
69
|
+
"stylelint": "^15.5.0",
|
|
70
|
+
"stylelint-config-sass-guidelines": "^10.0.0",
|
|
71
|
+
"webpack": "^5.80.0",
|
|
72
|
+
"webpack-cli": "^5.0.2",
|
|
73
|
+
"webpack-dev-server": "^4.13.3"
|
|
76
74
|
},
|
|
77
75
|
"peerDependencies": {
|
|
78
|
-
"@codemirror/lang-html": "^6.4.
|
|
79
|
-
"@fortawesome/fontawesome-free": "^6.
|
|
80
|
-
"@popperjs/core": "^2.11.
|
|
76
|
+
"@codemirror/lang-html": "^6.4.3",
|
|
77
|
+
"@fortawesome/fontawesome-free": "^6.4.0",
|
|
78
|
+
"@popperjs/core": "^2.11.7",
|
|
81
79
|
"codemirror": "^6.0.1"
|
|
82
80
|
},
|
|
83
|
-
"packageManager": "yarn@3.
|
|
81
|
+
"packageManager": "yarn@3.5.0"
|
|
84
82
|
}
|
package/src/core/dom.js
CHANGED
|
@@ -317,7 +317,7 @@ export function cleanDomContent(root, style) {
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
// Remove all tag attributes for tags in the allowed list
|
|
320
|
-
if (hasTagName(el, ["b", "i", "q", "u", "s", "br"])) {
|
|
320
|
+
if (hasTagName(el, ["b", "i", "q", "u", "s", "br", "sup"])) {
|
|
321
321
|
resetAttributesTo(el, {});
|
|
322
322
|
continue;
|
|
323
323
|
}
|