@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.
- package/dist/editor-x/editor.cjs +3 -3
- package/dist/editor-x/editor.cjs.map +1 -1
- package/dist/editor-x/editor.css +5 -3
- package/dist/editor-x/editor.css.map +1 -1
- package/dist/editor-x/editor.js +3 -3
- package/dist/editor-x/editor.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +5 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/editor-ui/content-editable.tsx +3 -3
- package/src/themes/editor-theme.scss +5 -3
package/dist/editor-x/editor.cjs
CHANGED
|
@@ -5062,13 +5062,13 @@ function ContentEditable({
|
|
|
5062
5062
|
placeholderClassName,
|
|
5063
5063
|
placeholderDefaults = true
|
|
5064
5064
|
}) {
|
|
5065
|
-
const
|
|
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
|
-
!
|
|
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 && !
|
|
5082
|
+
placeholderDefaults && !isReadOnlyOrReview && "absolute top-0 left-0 overflow-hidden px-8 py-[18px] text-ellipsis"
|
|
5083
5083
|
),
|
|
5084
5084
|
children: placeholder2
|
|
5085
5085
|
}
|