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