Fix issue when using deprecated richtext maxLength (#4893)

This commit is contained in:
buddh4 2021-02-19 10:54:22 +01:00 committed by GitHub
parent 6da14f8b60
commit b1e9ddc20b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
1.8.0 (Unreleased)
--------------------------------
- Fix #4893: Richtext extension events are ignored when using deprecated maxLength option
1.8.0-beta.2 (February 18, 2021)
--------------------------------

View File

@ -168,7 +168,7 @@ class ProsemirrorRichText extends AbstractRichText
// Can be removed in a future version, richtext should not be cut anymore, only text or shorttext version should be cut
if ($this->maxLength > 0) {
$output = Helpers::truncateText($this->text, $this->maxLength);
$output = Helpers::truncateText($output, $this->maxLength);
}
// Wrap encoded output in root div