Skip to content

Commit 7875816

Browse files
committed
fix: snapshot and test and changelog
1 parent 4d46b53 commit 7875816

6 files changed

Lines changed: 16 additions & 4 deletions

File tree

packages/pluggableWidgets/rich-text-web/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- We added new configuration to make link Url validation optional. This will allow user to put non-standard Url into the link format.
12+
913
### Fixed
1014

1115
- We fixed an issue where the editor kept adding infinite empty lines at the end by limiting it to only 1 empty line.
1216

17+
### Changed
18+
19+
- We added `trimEnd` functionality to make character count on status bar correctly count characters without including new line and empty character.
20+
1321
## [4.11.2] - 2026-03-05
1422

1523
### Fixed
-40 Bytes
Loading

packages/pluggableWidgets/rich-text-web/src/RichText.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export default function RichText(props: RichTextContainerProps): ReactElement {
2929
childList: true
3030
});
3131
} else {
32+
// eslint-disable-next-line react-hooks/set-state-in-effect
3233
setIsIncubator(false);
3334
}
3435

packages/pluggableWidgets/rich-text-web/src/__tests__/RichText.spec.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ describe("Rich Text", () => {
4646
OverflowY: "auto",
4747
customFonts: [],
4848
enableDefaultUpload: true,
49-
formOrientation: "vertical"
49+
formOrientation: "vertical",
50+
linkValidation: true
5051
};
5152
});
5253

packages/pluggableWidgets/rich-text-web/src/__tests__/__snapshots__/RichText.spec.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6022,7 +6022,7 @@ exports[`Rich Text renders with character count status bar 1`] = `
60226022
>
60236023
<span>
60246024
<span>
6025-
25
6025+
23
60266026
</span>
60276027
<span>
60286028
character

packages/pluggableWidgets/rich-text-web/src/components/Editor.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ import MxQuill, { MxQuillModulesOptions } from "../utils/MxQuill";
2424
import { useEmbedModal } from "./CustomToolbars/useEmbedModal";
2525
import Dialog from "./ModalDialog/Dialog";
2626

27-
export interface EditorProps
28-
extends Pick<RichTextContainerProps, "imageSource" | "imageSourceContent" | "enableDefaultUpload"> {
27+
export interface EditorProps extends Pick<
28+
RichTextContainerProps,
29+
"imageSource" | "imageSourceContent" | "enableDefaultUpload"
30+
> {
2931
options: MxQuillModulesOptions;
3032
defaultValue?: string;
3133
onTextChange?: (...args: [delta: Delta, oldContent: Delta, source: EmitterSource]) => void;

0 commit comments

Comments
 (0)