@megha-ui/react 1.2.620 → 1.2.621
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.
|
@@ -221,7 +221,7 @@ const TextEditor = ({ value, onChange, enabledTools = {
|
|
|
221
221
|
insertImage(url);
|
|
222
222
|
setShowImageDropdown(false);
|
|
223
223
|
}, style: dropdownItemStyle, children: "Insert from URL" }), _jsxs("label", { style: Object.assign(Object.assign({}, dropdownItemStyle), { cursor: "pointer" }), children: ["Upload from Computer", _jsx("input", { type: "file", accept: "image/*", onChange: handleImageUpload, style: { display: "none" } })] })] }))] })), enabledTools.linkOptions && (_jsxs(_Fragment, { children: [_jsx("button", { type: "button", onClick: insertLink, style: buttonStyle, children: _jsx(IconLink, {}) }), _jsx("button", { type: "button", onClick: removeLink, style: buttonStyle, children: _jsx(IconUnlink, {}) })] }))] }), _jsx("div", { ref: editorRef, contentEditable: true, onInput: updateContent, onClick: handleEditorClick, suppressContentEditableWarning: true, style: {
|
|
224
|
-
|
|
224
|
+
height: "max-content",
|
|
225
225
|
padding: "0.65rem",
|
|
226
226
|
border: "1px solid var(--divider-strong, #ddd)",
|
|
227
227
|
borderRadius: "0.25rem",
|
package/package.json
CHANGED