diff --git a/CHANGELOG.md b/CHANGELOG.md index 5015b1b..b491d96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Next +* Export text element with .editor() function where htmlEditorConfig can be customized ## [1.4.6] - 17.05.2024 * Allow multiple slot finder instances on one site (#383421) diff --git a/content-elements/base/text/index.js b/content-elements/base/text/index.js index 24ff0f6..8c8bff6 100644 --- a/content-elements/base/text/index.js +++ b/content-elements/base/text/index.js @@ -1,3 +1,12 @@ require('./styles.scss'); -module.exports = require('./prototype')(); \ No newline at end of file +module.exports = require('./prototype')(); +module.exports.editor = (textEditorConfig) => + require('./prototype')( + require('./template.twig'), + 'text-kkq2fq', + 'Text', + 'text-part-Fjse59', + 'Text', + textEditorConfig + );