fix: reorder plugin wrapping (#1051)

This commit is contained in:
Arick
2022-09-07 04:19:21 +08:00
committed by GitHub
parent 5e21048457
commit cd8edbaa1f

View File

@@ -152,11 +152,11 @@ const RichText: React.FC<Props> = (props) => {
),
);
CreatedEditor = withHTML(CreatedEditor);
CreatedEditor = enablePlugins(CreatedEditor, elements);
CreatedEditor = enablePlugins(CreatedEditor, leaves);
CreatedEditor = withHTML(CreatedEditor);
return CreatedEditor;
}, [elements, leaves]);