@uiw/react-md-editor 3.14.5 → 3.15.0

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/README.md CHANGED
@@ -564,7 +564,7 @@ Inherit custom color variables by adding [`.wmde-markdown-var`](https://github.c
564
564
 
565
565
  - `value: string`: The Markdown value.
566
566
  - `onChange?: (value?: string, event?: React.ChangeEvent<HTMLTextAreaElement>, state?: ContextStore)`: Event handler for the `onChange` event.
567
- - `onHeightChange?: (value?: number, oldValue?: number, state?: ContextStore)`: editor height change listener.
567
+ - `onHeightChange?: ((value?: CSSProperties['height'], oldValue?: CSSProperties['height'], state?: ContextStore)`: editor height change listener.
568
568
  - `commands?: ICommand[]`: An array of [`ICommand`](https://github.com/uiwjs/react-md-editor/blob/d02543050c9abd8f7c72ae02b6421ac2e6ae421a/src/commands/index.ts#L39-L57), which, each one, contain a [`commands`](https://github.com/uiwjs/react-md-editor/blob/d02543050c9abd8f7c72ae02b6421ac2e6ae421a/src/commands/index.ts#L155-L180) property. If no commands are specified, the default will be used. Commands are explained in more details below.
569
569
  - `commandsFilter?: (command: ICommand, isExtra: boolean) => false | ICommand`: Filter or modify your commands.
570
570
  - `extraCommands?: ICommand[]`: Displayed on the right side of the toolbar.
@@ -572,7 +572,7 @@ Inherit custom color variables by adding [`.wmde-markdown-var`](https://github.c
572
572
  - `previewOptions?: ReactMarkdown.ReactMarkdownProps`: This is reset [@uiw/react-markdown-preview](https://github.com/uiwjs/react-markdown-preview/tree/e6e8462d9a5c64a7045e25adcb4928095d74ca37#options-props) settings.
573
573
  - `textareaProps?: TextareaHTMLAttributes`: Set the `textarea` related props.
574
574
  - `renderTextarea?: (props, opts) => JSX.Element;`: Use div to replace TextArea or re-render TextArea. [#193](https://github.com/uiwjs/react-md-editor/issues/193)
575
- - `height?: number=200`: The height of the editor.
575
+ - `height?: number=200`: The height of the editor. ️⚠️ `Dragbar` is invalid when **`height`** parameter percentage.
576
576
  - `visibleDragbar?: boolean=true`: Show drag and drop tool. Set the height of the editor.
577
577
  - `highlightEnable?: boolean=true`: Disable editing area code highlighting. The value is `false`, which increases the editing speed.
578
578
  - `fullscreen?: boolean=false`: Show markdown preview.
package/dist/mdeditor.css CHANGED
@@ -1325,6 +1325,7 @@ body[data-color-mode*='light'] {
1325
1325
  left: 0;
1326
1326
  right: 0;
1327
1327
  bottom: 0;
1328
+ height: 100% !important;
1328
1329
  }
1329
1330
  .w-md-editor-fullscreen .w-md-editor-content {
1330
1331
  height: 100%;