@thangph2146/lexical-editor 0.0.3 → 0.0.4

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.
@@ -5062,13 +5062,13 @@ function ContentEditable({
5062
5062
  placeholderClassName,
5063
5063
  placeholderDefaults = true
5064
5064
  }) {
5065
- const isReadOnly = className?.includes("--readonly");
5065
+ const isReadOnlyOrReview = className?.includes("--readonly") || className?.includes("--review");
5066
5066
  return /* @__PURE__ */ jsxRuntime.jsx(
5067
5067
  LexicalContentEditable.ContentEditable,
5068
5068
  {
5069
5069
  className: cn(
5070
5070
  "ContentEditable__root relative block focus:outline-none",
5071
- !isReadOnly && "min-h-72 px-8 py-4",
5071
+ !isReadOnlyOrReview && "min-h-72 px-8 py-4",
5072
5072
  className
5073
5073
  ),
5074
5074
  "aria-placeholder": placeholder2,
@@ -5079,7 +5079,7 @@ function ContentEditable({
5079
5079
  className: cn(
5080
5080
  placeholderClassName,
5081
5081
  "text-muted-foreground pointer-events-none select-none",
5082
- placeholderDefaults && !isReadOnly && "absolute top-0 left-0 overflow-hidden px-8 py-[18px] text-ellipsis"
5082
+ placeholderDefaults && !isReadOnlyOrReview && "absolute top-0 left-0 overflow-hidden px-8 py-[18px] text-ellipsis"
5083
5083
  ),
5084
5084
  children: placeholder2
5085
5085
  }