@tmagic/editor 1.3.0-alpha.11 → 1.3.0-alpha.12
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.
|
@@ -5118,7 +5118,7 @@
|
|
|
5118
5118
|
const dragstartHandler = ({ text, type, data = {} }, e) => {
|
|
5119
5119
|
if (e.dataTransfer) {
|
|
5120
5120
|
e.dataTransfer.setData(
|
|
5121
|
-
"text/
|
|
5121
|
+
"text/json",
|
|
5122
5122
|
serialize({
|
|
5123
5123
|
name: text,
|
|
5124
5124
|
type,
|
|
@@ -6901,7 +6901,7 @@
|
|
|
6901
6901
|
}
|
|
6902
6902
|
if (e.dataTransfer && parent && stageContainer.value && stage) {
|
|
6903
6903
|
const parseDSL = getConfig("parseDSL");
|
|
6904
|
-
const data = e.dataTransfer.getData("text/
|
|
6904
|
+
const data = e.dataTransfer.getData("text/json");
|
|
6905
6905
|
if (!data)
|
|
6906
6906
|
return;
|
|
6907
6907
|
const config = parseDSL(`(${data})`);
|