Skip to content

Commit

Permalink
get back package originals
Browse files Browse the repository at this point in the history
  • Loading branch information
VargaJoe committed Nov 16, 2023
1 parent bd9c17d commit f9bbf80
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 101 deletions.
1 change: 0 additions & 1 deletion apps/sensenet/src/components/field-controls/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ export * from './rich-text-editor'
export * from './webhook-trigger'
export * from './webhook-headers'
export * from './webhook-payload'
export * from './html-editor'
89 changes: 0 additions & 89 deletions packages/sn-controls-react/src/fieldcontrols/htmleditor.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions packages/sn-controls-react/src/fieldcontrols/localization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ export const defaultLocalization = {
textarea: {
noValue: 'No value set',
},
htmleditor: {
noValue: 'No value set',
},
timePicker: {
noValue: 'No time selected',
},
Expand Down
10 changes: 2 additions & 8 deletions packages/sn-controls-react/src/react-control-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,8 @@ export const reactControlMapper = (repository: Repository) => {
return FieldControls.ReferenceGrid
}
})
.setupFieldSettingDefault<LongTextFieldSetting>('LongTextFieldSetting', (setting) => {
switch (setting.ControlHint) {
case 'sn:HtmlEditor':
return FieldControls.HtmlEditor
default:
// return FieldControls.Textarea
return FieldControls.HtmlEditor
}
.setupFieldSettingDefault<LongTextFieldSetting>('LongTextFieldSetting', () => {
return FieldControls.Textarea
})
.setupFieldSettingDefault<RichTextFieldSetting>('RichTextFieldSetting', () => {
return FieldControls.RichTextEditor
Expand Down

0 comments on commit f9bbf80

Please sign in to comment.