aq-fe-framework 0.1.350 → 0.1.352
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.
|
@@ -509,7 +509,12 @@ function MyRichTextEditor(props) {
|
|
|
509
509
|
],
|
|
510
510
|
content: props.value,
|
|
511
511
|
onUpdate: ({ editor: editor2 }) => {
|
|
512
|
-
|
|
512
|
+
var _a;
|
|
513
|
+
if (props.onBlur) {
|
|
514
|
+
props.onBlur(editor2.getHTML());
|
|
515
|
+
return;
|
|
516
|
+
}
|
|
517
|
+
(_a = props.onChange) == null ? void 0 : _a.call(props, editor2.getHTML());
|
|
513
518
|
}
|
|
514
519
|
});
|
|
515
520
|
return /* @__PURE__ */ jsx9(Input.Wrapper, __spreadProps(__spreadValues({}, props.inputWrapperProps), { children: /* @__PURE__ */ jsxs5(MantineRichTextEditor, __spreadProps(__spreadValues({ editor }, props.richTextEditorProps), { children: [
|
package/dist/core/index.d.mts
CHANGED
|
@@ -79,8 +79,9 @@ interface CoreDayOfWeekPickerProps {
|
|
|
79
79
|
declare function MyDayOfWeekPicker({ value, onChange }: CoreDayOfWeekPickerProps): react_jsx_runtime.JSX.Element;
|
|
80
80
|
|
|
81
81
|
interface MyRichTextEditorProps {
|
|
82
|
-
value
|
|
83
|
-
onChange
|
|
82
|
+
value?: string;
|
|
83
|
+
onChange?: (value: string) => void;
|
|
84
|
+
onBlur?: (value: string) => void;
|
|
84
85
|
richTextEditorProps?: RichTextEditorProps;
|
|
85
86
|
richTextEditorToolBarProps?: RichTextEditorToolbarProps;
|
|
86
87
|
richTextEditorContentProps?: RichTextEditorContentProps;
|
package/dist/core/index.mjs
CHANGED