@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonaffenfels/slate-editor",
3
- "version": "1.2.13",
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": "8c1592b503c1df6efc4d84716d738d81207c3b9c",
75
+ "gitHead": "17d78c6d835447a438e7e5ae23cc09a2ddb9c61a",
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  }
package/scss/toolbar.scss CHANGED
@@ -25,6 +25,7 @@
25
25
  .toolbar-btns {
26
26
  display: flex;
27
27
  align-items: center;
28
+ position: relative;
28
29
  }
29
30
 
30
31
  .toolbar-btn {
@@ -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
  }
@@ -138,7 +138,7 @@ export const Toolbar = ({
138
138
  })}
139
139
  >
140
140
  <div className="toolbar-btns">
141
- <div className="flex grow items-center overflow-x-auto">
141
+ <div className="relative flex grow items-center">
142
142
  <div className="flex">
143
143
  <FormatButtonBold/>
144
144
  <FormatButtonItalic/>