diff --git a/src/input/richtext/RichTextToolbar.tsx b/src/input/richtext/RichTextToolbar.tsx
index 5b15c930..b8415da0 100644
--- a/src/input/richtext/RichTextToolbar.tsx
+++ b/src/input/richtext/RichTextToolbar.tsx
@@ -32,7 +32,9 @@ enum Styles {
paragraph = 'Normal text',
h1 = 'Heading 1',
h2 = 'Heading 2',
- h3 = 'Heading 3'
+ h3 = 'Heading 3',
+ h4 = 'Heading 4',
+ h5 = 'Heading 5'
}
export type RichTextToolbarProps = {
@@ -54,6 +56,10 @@ export const RichTextToolbar = forwardRef(function RichTextToolbar(
? 'h2'
: editor.isActive('heading', {level: 3})
? 'h3'
+ : editor.isActive('heading', {level: 4})
+ ? 'h4'
+ : editor.isActive('heading', {level: 5})
+ ? 'h5'
: 'paragraph'
function handleLink() {
@@ -94,8 +100,8 @@ export const RichTextToolbar = forwardRef(function RichTextToolbar(
.insertContent({
type: 'text',
text:
- picked.description ||
- (link as UrlReference).description ||
+ picked.title ||
+ (link as UrlReference).title ||
(link as UrlReference).url ||
'',
marks: [{type: 'link', attrs}]
@@ -144,6 +150,16 @@ export const RichTextToolbar = forwardRef(function RichTextToolbar(
>