@tmagic/editor 1.2.6 → 1.2.7

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/style.css CHANGED
@@ -99,8 +99,7 @@
99
99
  .m-editor-nav-menu .menu-item .is-text {
100
100
  padding: 5px;
101
101
  }
102
- .m-editor-nav-menu .menu-item .is-text,
103
- .m-editor-nav-menu .menu-item i {
102
+ .m-editor-nav-menu .menu-item .is-text > i {
104
103
  color: #070303;
105
104
  }
106
105
  .m-editor-nav-menu .menu-item .icon {
@@ -2473,6 +2473,13 @@ const useStage = (stageOptions) => {
2473
2473
  stage.on("sort", (ev) => {
2474
2474
  editorService.sort(ev.src, ev.dist);
2475
2475
  });
2476
+ stage.on("remove", (ev) => {
2477
+ editorService.remove(
2478
+ ev.data.map(({ el }) => ({
2479
+ id: el.id
2480
+ }))
2481
+ );
2482
+ });
2476
2483
  stage.on("select-parent", () => {
2477
2484
  const parent = editorService.get("parent");
2478
2485
  if (!parent)
@@ -3549,6 +3556,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3549
3556
  () => {
3550
3557
  services?.codeBlockService.refreshAllRelations();
3551
3558
  refreshCodeList();
3559
+ },
3560
+ {
3561
+ immediate: true
3552
3562
  }
3553
3563
  );
3554
3564
  watch(