Skip to content

Commit

Permalink
fix #60
Browse files Browse the repository at this point in the history
  • Loading branch information
64j committed Oct 14, 2024
1 parent c6fbe21 commit 74eb554
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion assets/plugins/templatesedit/class/templatesedit.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,17 @@ public function renderAfterTemplate(): string
$out .= '<!-- end hidden fields -->';
}

$richtexteditorIds = $this->richtexteditorIds;
# fix https://github.com/64j/templatesedit3/issues/60
$richtexteditorIds = array_map(
function ($item) {
if (in_array('ta', $item, true) && count($item) > 1) {
$item = array_unique(array_merge(['ta'], $item));
}

return $item;
},
$this->richtexteditorIds
);
$richtexteditorOptions = $this->richtexteditorOptions;

return $out;
Expand Down

0 comments on commit 74eb554

Please sign in to comment.