@limetech/lime-elements 37.48.0 → 37.49.1

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.
@@ -26066,6 +26066,11 @@ const ProsemirrorAdapter = class {
26066
26066
  setTimeout(() => {
26067
26067
  this.initializeTextEditor();
26068
26068
  }, 0);
26069
+ }
26070
+ connectedCallback() {
26071
+ if (this.view) {
26072
+ this.initializeTextEditor();
26073
+ }
26069
26074
  this.host.addEventListener('open-editor-link-menu', this.handleOpenLinkMenu);
26070
26075
  }
26071
26076
  disconnectedCallback() {
@@ -26075,8 +26080,8 @@ const ProsemirrorAdapter = class {
26075
26080
  render() {
26076
26081
  return [
26077
26082
  index.h("div", { id: "editor" }),
26078
- index.h("limel-action-bar", { slot: "trigger", accessibleLabel: "Toolbar", actions: this.actionBarItems, onItemSelected: this.handleActionBarItem }),
26079
- index.h("limel-portal", { containerId: this.portalId, visible: this.isLinkMenuOpen, openDirection: "top", inheritParentWidth: true, containerStyle: { 'z-index': 1 } }, index.h("limel-menu-surface", { open: this.isLinkMenuOpen, onDismiss: this.handleCancelLinkMenu, style: {
26083
+ index.h("limel-action-bar", { ref: (el) => (this.actionBarElement = el), accessibleLabel: "Toolbar", actions: this.actionBarItems, onItemSelected: this.handleActionBarItem }),
26084
+ index.h("limel-portal", { containerId: this.portalId, visible: this.isLinkMenuOpen, openDirection: "top", inheritParentWidth: true, anchor: this.actionBarElement, containerStyle: { 'z-index': 1 } }, index.h("limel-menu-surface", { open: this.isLinkMenuOpen, onDismiss: this.handleCancelLinkMenu, style: {
26080
26085
  '--mdc-menu-min-width': '100%',
26081
26086
  'max-height': 'inherit',
26082
26087
  } }, index.h("limel-text-editor-link-menu", { link: this.link, isOpen: this.isLinkMenuOpen, onLinkChange: this.handleLinkChange, onCancel: this.handleCancelLinkMenu, onSave: this.handleSaveLinkMenu }))),