@trafica/editor 1.0.9 → 1.0.11
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/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/dist/styles/editor.css +2 -0
- package/dist/styles/tailwind.css +2 -0
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -4728,7 +4728,15 @@ function ImageUploadButton({ engine, onUploadImage }) {
|
|
|
4728
4728
|
setAltInput(file.name.replace(/\.[^.]+$/, ""));
|
|
4729
4729
|
if (!onUploadImage) {
|
|
4730
4730
|
insertImage(blobUrl, file.name.replace(/\.[^.]+$/, ""))(engine);
|
|
4731
|
-
|
|
4731
|
+
setOpen(false);
|
|
4732
|
+
setUrlInput("");
|
|
4733
|
+
setUrlError(false);
|
|
4734
|
+
setAltInput("");
|
|
4735
|
+
altInputRef.current = "";
|
|
4736
|
+
setPreview(null);
|
|
4737
|
+
setUploading(false);
|
|
4738
|
+
setProgress(0);
|
|
4739
|
+
setDragging(false);
|
|
4732
4740
|
return;
|
|
4733
4741
|
}
|
|
4734
4742
|
setUploading(true);
|
|
@@ -6077,7 +6085,7 @@ function LinkButton({
|
|
|
6077
6085
|
const handleApply = () => {
|
|
6078
6086
|
const trimmed = url.trim();
|
|
6079
6087
|
if (!trimmed) return;
|
|
6080
|
-
const href =
|
|
6088
|
+
const href = trimmed;
|
|
6081
6089
|
const text = displayText.trim() || void 0;
|
|
6082
6090
|
insertLink(href, text)(engine);
|
|
6083
6091
|
closePopup();
|