@vonaffenfels/slate-editor 1.2.13 → 1.2.18
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/dist/BlockEditor.css +2 -2
- package/dist/BlockEditor.js +2 -2
- package/dist/Renderer.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/scss/toolbar.scss +1 -0
- package/src/Nodes/Default.js +4 -0
- package/src/Toolbar/Toolbar.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonaffenfels/slate-editor",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.18",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"cssnano": "^5.0.1",
|
|
73
73
|
"escape-html": "^1.0.3"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "17d78c6d835447a438e7e5ae23cc09a2ddb9c61a",
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
}
|
package/scss/toolbar.scss
CHANGED
package/src/Nodes/Default.js
CHANGED
|
@@ -111,6 +111,10 @@ export const Default = ({
|
|
|
111
111
|
|
|
112
112
|
const nofollowProp = noFollow || nofollow;
|
|
113
113
|
|
|
114
|
+
if (linkAttributes.href?.startsWith("/mailto:") || linkAttributes.href?.startsWith("/tel:")) {
|
|
115
|
+
linkAttributes.href = linkAttributes.href.slice(1);
|
|
116
|
+
}
|
|
117
|
+
|
|
114
118
|
if (nofollowProp) {
|
|
115
119
|
relProp += " nofollow";
|
|
116
120
|
}
|
package/src/Toolbar/Toolbar.js
CHANGED
|
@@ -138,7 +138,7 @@ export const Toolbar = ({
|
|
|
138
138
|
})}
|
|
139
139
|
>
|
|
140
140
|
<div className="toolbar-btns">
|
|
141
|
-
<div className="flex grow items-center
|
|
141
|
+
<div className="relative flex grow items-center">
|
|
142
142
|
<div className="flex">
|
|
143
143
|
<FormatButtonBold/>
|
|
144
144
|
<FormatButtonItalic/>
|