Skip to content

Commit

Permalink
React: regenerate html-editor (#28249)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexslavr authored Oct 25, 2024
1 parent 8fb6cdb commit 60ce51b
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions packages/devextreme-react/src/html-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,18 @@ type IConverterProps = React.PropsWithChildren<{
fromHtml?: ((value: string) => string);
toHtml?: ((value: string) => string);
}>
const _componentConverter = memo(
(props: IConverterProps) => {
return React.createElement(NestedOption<IConverterProps>, { ...props });
}
);

const Converter: typeof _componentConverter & IElementDescriptor = Object.assign(_componentConverter, {
OptionName: "converter",
})
const _componentConverter = (props: IConverterProps) => {
return React.createElement(NestedOption<IConverterProps>, {
...props,
elementDescriptor: {
OptionName: "converter",
},
});
};

const Converter = Object.assign<typeof _componentConverter, NestedComponentMeta>(_componentConverter, {
componentType: "option",
});

// owners:
// ImageUpload
Expand Down

0 comments on commit 60ce51b

Please sign in to comment.