Skip to content

Commit

Permalink
377652: Allow custom Text Editor (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
derB4 authored Sep 6, 2024
1 parent 826b0de commit 51cdfbd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 10 additions & 1 deletion content-elements/base/text/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
require('./styles.scss');

module.exports = require('./prototype')();
module.exports = require('./prototype')();
module.exports.editor = (textEditorConfig) =>
require('./prototype')(
require('./template.twig'),
'text-kkq2fq',
'Text',
'text-part-Fjse59',
'Text',
textEditorConfig
);

0 comments on commit 51cdfbd

Please sign in to comment.