@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.
@@ -5109,7 +5109,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
5109
5109
  const dragstartHandler = ({ text, type, data = {} }, e) => {
5110
5110
  if (e.dataTransfer) {
5111
5111
  e.dataTransfer.setData(
5112
- "text/html",
5112
+ "text/json",
5113
5113
  serialize({
5114
5114
  name: text,
5115
5115
  type,
@@ -6892,7 +6892,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6892
6892
  }
6893
6893
  if (e.dataTransfer && parent && stageContainer.value && stage) {
6894
6894
  const parseDSL = getConfig("parseDSL");
6895
- const data = e.dataTransfer.getData("text/html");
6895
+ const data = e.dataTransfer.getData("text/json");
6896
6896
  if (!data)
6897
6897
  return;
6898
6898
  const config = parseDSL(`(${data})`);