@tmagic/editor 1.3.0-alpha.14 → 1.3.0-alpha.15

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.
@@ -4996,7 +4996,15 @@
4996
4996
  "custom-error": _ctx.customError,
4997
4997
  onEdit: vue.unref(editCode),
4998
4998
  onRemove: vue.unref(deleteCode)
4999
- }, null, 8, ["custom-error", "onEdit", "onRemove"]),
4999
+ }, {
5000
+ "code-block-panel-tool": vue.withCtx(({ id, data }) => [
5001
+ vue.renderSlot(_ctx.$slots, "code-block-panel-tool", {
5002
+ id,
5003
+ data
5004
+ })
5005
+ ]),
5006
+ _: 3
5007
+ }, 8, ["custom-error", "onEdit", "onRemove"]),
5000
5008
  vue.unref(codeConfig) ? (vue.openBlock(), vue.createBlock(_sfc_main$G, {
5001
5009
  key: 0,
5002
5010
  ref_key: "codeBlockEditor",
@@ -5844,7 +5852,7 @@
5844
5852
  return;
5845
5853
  const { data: node } = e;
5846
5854
  const parent = editorService?.getParentById(node.id, false);
5847
- const layout = await editorService?.getLayout(parent);
5855
+ const layout = await editorService?.getLayout(parent, node);
5848
5856
  node.style.position = layout;
5849
5857
  if (layout === Layout.RELATIVE) {
5850
5858
  node.style.top = 0;