@flozy/editor 3.1.4 → 3.1.6
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.
|
@@ -83,6 +83,10 @@ const EditorButton = props => {
|
|
|
83
83
|
case "webAddress":
|
|
84
84
|
const refUrl = url ? url.includes("http") ? url : `//${url}` : "Link";
|
|
85
85
|
props.component = "a";
|
|
86
|
+
props.tabIndex = 1;
|
|
87
|
+
props.onClick = () => {
|
|
88
|
+
return false;
|
|
89
|
+
};
|
|
86
90
|
if (refUrl !== "Link") {
|
|
87
91
|
props.href = refUrl;
|
|
88
92
|
}
|
|
@@ -101,6 +105,10 @@ const EditorButton = props => {
|
|
|
101
105
|
break;
|
|
102
106
|
case "page":
|
|
103
107
|
props.component = "a";
|
|
108
|
+
props.tabIndex = 1;
|
|
109
|
+
props.onClick = () => {
|
|
110
|
+
return false;
|
|
111
|
+
};
|
|
104
112
|
const [page, section] = url.split("#");
|
|
105
113
|
props.href = page === "home" ? `#${section}` : `/${url}`;
|
|
106
114
|
if (openInNewTab) {
|
|
@@ -109,10 +117,18 @@ const EditorButton = props => {
|
|
|
109
117
|
break;
|
|
110
118
|
case "email":
|
|
111
119
|
props.component = "a";
|
|
120
|
+
props.tabIndex = 1;
|
|
121
|
+
props.onClick = () => {
|
|
122
|
+
return false;
|
|
123
|
+
};
|
|
112
124
|
props.href = `mailto:${url}`;
|
|
113
125
|
break;
|
|
114
126
|
case "phone":
|
|
115
127
|
props.component = "a";
|
|
128
|
+
props.tabIndex = 1;
|
|
129
|
+
props.onClick = () => {
|
|
130
|
+
return false;
|
|
131
|
+
};
|
|
116
132
|
props.href = `tel:${url}`;
|
|
117
133
|
break;
|
|
118
134
|
case "scrollTopOrBottom":
|
|
@@ -159,7 +175,7 @@ const EditorButton = props => {
|
|
|
159
175
|
className: "element-toolbar hr",
|
|
160
176
|
style: {
|
|
161
177
|
width: "max-content",
|
|
162
|
-
top: "-
|
|
178
|
+
top: "-12px",
|
|
163
179
|
alignItems: "center",
|
|
164
180
|
cursor: "pointer"
|
|
165
181
|
},
|
|
@@ -219,7 +235,7 @@ const EditorButton = props => {
|
|
|
219
235
|
sx: {
|
|
220
236
|
display: {
|
|
221
237
|
lg: "inline",
|
|
222
|
-
xs: xsHidden ? "none" : "inline"
|
|
238
|
+
xs: xsHidden ? "none" : "inline-block"
|
|
223
239
|
},
|
|
224
240
|
"& .element-toolbar": {
|
|
225
241
|
display: "none"
|
|
@@ -232,7 +248,8 @@ const EditorButton = props => {
|
|
|
232
248
|
},
|
|
233
249
|
children: /*#__PURE__*/_jsxs("span", {
|
|
234
250
|
style: {
|
|
235
|
-
position: "relative"
|
|
251
|
+
position: "relative",
|
|
252
|
+
display: "inline-block"
|
|
236
253
|
},
|
|
237
254
|
children: [/*#__PURE__*/_jsxs(Box, {
|
|
238
255
|
sx: {
|