Skip to content

Commit

Permalink
[BUGFIX] Remove "images" from softref parsers list in Text element
Browse files Browse the repository at this point in the history
This parser only exists if the "images in RTE" extension is loaded. On
all other sites this causes a log entry warning of a non-existing parser.
Since "images in RTE" is 100% opt-in, Flux is adjusted to fit the more
common use case - users who use "images in RTE" must manually
configure any "Text" fields manually by setting the "config" property
on the flux:field.text tag with a key "softref" and set the value to your
desired list of softref parsers, e.g. "typolink_tag,images,url".

If you don't care about reference tracking then no action is necessary.
  • Loading branch information
NamelessCoder committed Sep 28, 2023
1 parent 93241db commit c68381f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Form/Field/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function buildConfiguration(): array
$configuration['placeholder'] = $this->getPlaceholder();
if ($this->getEnableRichText()) {
$configuration['enableRichtext'] = true;
$configuration['softref'] = 'typolink_tag,images,email[subst],url';
$configuration['softref'] = 'typolink_tag,email[subst],url';
$configuration['richtextConfiguration'] = $this->getRichtextConfiguration();
}
$renderType = $this->getRenderType();
Expand Down
2 changes: 1 addition & 1 deletion Tests/Unit/Form/Field/TextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function testBuildConfigurationWithRteResolving(): void
'eval' => 'trim',
'placeholder' => null,
'enableRichtext' => true,
'softref' => 'typolink_tag,images,email[subst],url',
'softref' => 'typolink_tag,email[subst],url',
'richtextConfiguration' => 'default',
'renderType' => 'rte',
'format' => '',
Expand Down

0 comments on commit c68381f

Please sign in to comment.