@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.
- package/dist/editor-x/editor.cjs +6 -16
- package/dist/editor-x/editor.cjs.map +1 -1
- package/dist/editor-x/editor.css +2 -0
- package/dist/editor-x/editor.css.map +1 -1
- package/dist/editor-x/editor.js +6 -16
- package/dist/editor-x/editor.js.map +1 -1
- package/dist/index.cjs +6 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +6 -16
- package/dist/index.js.map +1 -1
- package/package.json +87 -86
- package/src/editor-ui/content-editable.tsx +30 -42
- package/src/editor-x/plugins.tsx +3 -1
- package/src/plugins/layout-plugin.tsx +1 -5
- package/src/themes/plugins/_menus-and-pickers.scss +2 -0
package/dist/index.js
CHANGED
|
@@ -5083,19 +5083,7 @@ function ContentEditable({
|
|
|
5083
5083
|
!isReadOnlyOrReview && "min-h-72 px-8 py-4",
|
|
5084
5084
|
className
|
|
5085
5085
|
),
|
|
5086
|
-
"aria-
|
|
5087
|
-
"aria-label": placeholder || "Editor n\u1ED9i dung",
|
|
5088
|
-
placeholder: /* @__PURE__ */ jsx(
|
|
5089
|
-
"div",
|
|
5090
|
-
{
|
|
5091
|
-
className: cn(
|
|
5092
|
-
placeholderClassName,
|
|
5093
|
-
"text-muted-foreground pointer-events-none select-none",
|
|
5094
|
-
placeholderDefaults && !isReadOnlyOrReview && "absolute top-0 left-0 overflow-hidden px-8 py-[18px] text-ellipsis"
|
|
5095
|
-
),
|
|
5096
|
-
children: placeholder
|
|
5097
|
-
}
|
|
5098
|
-
)
|
|
5086
|
+
"aria-label": "Editor n\u1ED9i dung"
|
|
5099
5087
|
}
|
|
5100
5088
|
);
|
|
5101
5089
|
}
|
|
@@ -9953,7 +9941,7 @@ function LayoutPlugin() {
|
|
|
9953
9941
|
values: {
|
|
9954
9942
|
template: parentContainer.getTemplateColumns(),
|
|
9955
9943
|
itemBackgroundColor: extractStyleValue(style, "background-color") ?? "#ffffff",
|
|
9956
|
-
itemPaddingXPx: paddingValues
|
|
9944
|
+
itemPaddingXPx: paddingValues?.[1] ?? paddingValues?.[0] ?? 12,
|
|
9957
9945
|
itemPaddingYPx: paddingValues?.[0] ?? 12,
|
|
9958
9946
|
itemBorderRadiusPx: borderRadiusValues?.[0] ?? 8
|
|
9959
9947
|
}
|
|
@@ -33049,11 +33037,13 @@ function Plugins({
|
|
|
33049
33037
|
contentEditable: /* @__PURE__ */ jsx("div", { className: cn("editor-relative-full"), children: /* @__PURE__ */ jsx("div", { className: cn("editor-relative-full"), ref: onRef, children: /* @__PURE__ */ jsx(
|
|
33050
33038
|
ContentEditable,
|
|
33051
33039
|
{
|
|
33052
|
-
placeholder:
|
|
33040
|
+
placeholder: "",
|
|
33053
33041
|
className: cn(
|
|
33054
33042
|
"editor-content-editable",
|
|
33055
33043
|
readOnly && "editor-content-editable--readonly"
|
|
33056
|
-
)
|
|
33044
|
+
),
|
|
33045
|
+
placeholderClassName: "editor-placeholder",
|
|
33046
|
+
placeholderDefaults: false
|
|
33057
33047
|
}
|
|
33058
33048
|
) }) }),
|
|
33059
33049
|
ErrorBoundary: LexicalErrorBoundary,
|