diff --git a/src/RichTextEditor/RichTextEditor.jsx b/src/RichTextEditor/RichTextEditor.jsx index 55730901..9b3a2844 100644 --- a/src/RichTextEditor/RichTextEditor.jsx +++ b/src/RichTextEditor/RichTextEditor.jsx @@ -144,7 +144,7 @@ const RichTextEditor = ({ }; if (options.allowedTags && !options.allowedTags.includes('span')) { - options.allowedTags.push(['span']); + options.allowedTags.push('span'); } }