Skip to content

Commit 7744e6a

Browse files
committed
fix: missing toolbar component
1 parent af9aa20 commit 7744e6a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1010

1111
- We added support for resizing images, videos, and other embeds.
1212

13+
### Fixed
14+
15+
- We fixed missing "Code" and "Font Size" toolbar component on custom advanced toolbar.
16+
1317
## [4.3.1] - 2025-03-19
1418

1519
### Fixed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,14 @@
249249
<enumerationValue key="video">Video</enumerationValue>
250250
<enumerationValue key="formula">Formula</enumerationValue>
251251
<enumerationValue key="blockquote">Blockquote</enumerationValue>
252+
<enumerationValue key="code">Code</enumerationValue>
252253
<enumerationValue key="codeBlock">Code Block</enumerationValue>
253254
<enumerationValue key="viewCode">View Code</enumerationValue>
254255
<enumerationValue key="align">Left Align</enumerationValue>
255256
<enumerationValue key="centerAlign">Center Align</enumerationValue>
256257
<enumerationValue key="rightAlign">Right Align</enumerationValue>
257-
<enumerationValue key="font">Font</enumerationValue>
258+
<enumerationValue key="font">Font Type</enumerationValue>
259+
<enumerationValue key="size">Font Size</enumerationValue>
258260
<enumerationValue key="color">Color</enumerationValue>
259261
<enumerationValue key="background">Background</enumerationValue>
260262
<enumerationValue key="header">Header</enumerationValue>

packages/pluggableWidgets/rich-text-web/typings/RichTextProps.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export type OnChangeTypeEnum = "onLeave" | "onDataChange";
2525

2626
export type ToolbarConfigEnum = "basic" | "advanced";
2727

28-
export type CtItemTypeEnum = "separator" | "undo" | "redo" | "bold" | "italic" | "underline" | "strike" | "superScript" | "subScript" | "orderedList" | "bulletList" | "lowerAlphaList" | "checkList" | "minIndent" | "plusIndent" | "direction" | "link" | "image" | "video" | "formula" | "blockquote" | "codeBlock" | "viewCode" | "align" | "centerAlign" | "rightAlign" | "font" | "color" | "background" | "header" | "clean";
28+
export type CtItemTypeEnum = "separator" | "undo" | "redo" | "bold" | "italic" | "underline" | "strike" | "superScript" | "subScript" | "orderedList" | "bulletList" | "lowerAlphaList" | "checkList" | "minIndent" | "plusIndent" | "direction" | "link" | "image" | "video" | "formula" | "blockquote" | "code" | "codeBlock" | "viewCode" | "align" | "centerAlign" | "rightAlign" | "font" | "size" | "color" | "background" | "header" | "clean";
2929

3030
export interface AdvancedConfigType {
3131
ctItemType: CtItemTypeEnum;

0 commit comments

Comments
 (0)