mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Fix issue when using deprecated richtext maxLength (#4893)
This commit is contained in:
parent
6da14f8b60
commit
b1e9ddc20b
@ -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)
|
||||
--------------------------------
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user