Skip to content

Commit

Permalink
add tiptap control hint
Browse files Browse the repository at this point in the history
  • Loading branch information
VargaJoe committed May 23, 2024
1 parent 7b1be1a commit e70d331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/sensenet/src/components/react-control-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const reactControlMapper = (repository: Repository) => {
case 'sn:HtmlEditor':
return FieldControls.HtmlEditor
case 'sn:RichText':
case 'sn:TipTapEditor':
return FieldControls.RichTextEditor
default:
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const RichTextEditor: React.FC<
readOnly={props.settings.ReadOnly}
localization={props.localization?.richTextEditor}
onChange={({ editor }) => {
if (props.settings.ControlHint === 'sn:RichText') {
if (props.settings.ControlHint === 'sn:RichText' || props.settings.ControlHint === 'sn:TipTapEditor') {
props.fieldOnChange?.(props.settings.Name, editor.getHTML())
return
}
Expand Down

0 comments on commit e70d331

Please sign in to comment.