@thangph2146/lexical-editor 0.0.7 → 0.0.9

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,19 +5109,7 @@ function ContentEditable({
5109
5109
  !isReadOnlyOrReview && "min-h-72 px-8 py-4",
5110
5110
  className
5111
5111
  ),
5112
- "aria-placeholder": placeholder,
5113
- "aria-label": placeholder || "Editor n\u1ED9i dung",
5114
- placeholder: /* @__PURE__ */ jsxRuntime.jsx(
5115
- "div",
5116
- {
5117
- className: cn(
5118
- placeholderClassName,
5119
- "text-muted-foreground pointer-events-none select-none",
5120
- placeholderDefaults && !isReadOnlyOrReview && "absolute top-0 left-0 overflow-hidden px-8 py-[18px] text-ellipsis"
5121
- ),
5122
- children: placeholder
5123
- }
5124
- )
5112
+ "aria-label": "Editor n\u1ED9i dung"
5125
5113
  }
5126
5114
  );
5127
5115
  }
@@ -9979,7 +9967,7 @@ function LayoutPlugin() {
9979
9967
  values: {
9980
9968
  template: parentContainer.getTemplateColumns(),
9981
9969
  itemBackgroundColor: extractStyleValue(style, "background-color") ?? "#ffffff",
9982
- itemPaddingXPx: paddingValues && paddingValues.length > 1 ? paddingValues[1] : paddingValues?.[0] ?? 12,
9970
+ itemPaddingXPx: paddingValues?.[1] ?? paddingValues?.[0] ?? 12,
9983
9971
  itemPaddingYPx: paddingValues?.[0] ?? 12,
9984
9972
  itemBorderRadiusPx: borderRadiusValues?.[0] ?? 8
9985
9973
  }
@@ -33075,11 +33063,13 @@ function Plugins({
33075
33063
  contentEditable: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("editor-relative-full"), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("editor-relative-full"), ref: onRef, children: /* @__PURE__ */ jsxRuntime.jsx(
33076
33064
  ContentEditable,
33077
33065
  {
33078
- placeholder: readOnly ? "" : placeholder,
33066
+ placeholder: "",
33079
33067
  className: cn(
33080
33068
  "editor-content-editable",
33081
33069
  readOnly && "editor-content-editable--readonly"
33082
- )
33070
+ ),
33071
+ placeholderClassName: "editor-placeholder",
33072
+ placeholderDefaults: false
33083
33073
  }
33084
33074
  ) }) }),
33085
33075
  ErrorBoundary: LexicalErrorBoundary.LexicalErrorBoundary,