diff --git a/src/blocks/Text/extensions/withDeserializers.js b/src/blocks/Text/extensions/withDeserializers.js index c307319f..29f661a3 100644 --- a/src/blocks/Text/extensions/withDeserializers.js +++ b/src/blocks/Text/extensions/withDeserializers.js @@ -1,5 +1,10 @@ import { blockTagDeserializer } from 'volto-slate/editor/deserialize'; +import { Editor } from 'slate'; +/** + * This extension just replaces the `

` tag deserializer with the one for `

` tags. The rest of the default deserializers inherited from the `SlateEditor` component are good already. + * @param {Editor} editor The Slate editor object to extend. + */ export const withDeserializers = (editor) => { editor.htmlTagsToSlate = { ...editor.htmlTagsToSlate,