You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the upcoming version of WoltLab Suite, the handling of quotes has been revamped to enhance user experience.
4
+
Quotes are now stored client-side in the browser's local storage, allowing synchronization across browser tabs.
5
+
6
+
## Using the New Quote System
7
+
8
+
The interfaces `wcf\data\IMessageQuoteAction` and `wcf\system\message\quote\IMessageQuoteHandler` are no longer required to generate the quotes, and the implemented classes or functions can be completely removed.
9
+
Since the interface `IMessageQuoteHandler` has been deprecated, the ObjectType no longer requires any information about an associated class.
- MUST implement the interface `wcf\data\IMessage`.
26
+
- SHOULD implement the interface `wcf\data\IEmbeddedMessageObject`.
27
+
28
+
Using of `WoltLabSuite/Core/Ui/Message/Quote` is no longer required and only `WoltLabSuite/Core/Component/Quote/Message::registerContainer()` should be used so that a message can be quoted
The functions `MessageQuoteManager::readFormParameters()` and `MessageQuoteManager::saved()` must be called both in the form for creating and editing the entry.
53
+
This is necessary if the text input does support quotes. Regardless of whether the entry itself can be quoted later or not.
54
+
55
+
```PHP
56
+
use wcf\system\message\quote\MessageQuoteManager;
57
+
58
+
class FooAddForm extends \wcf\form\MessageForm {
59
+
60
+
#[\Override]
61
+
public function readFormParameters()
62
+
{
63
+
parent::readFormParameters();
64
+
65
+
// …
66
+
67
+
// Read the quotes that are to be deleted after the message has been successfully saved
// Save the used quotes so that they're deleted on the client with the next request
79
+
MessageQuoteManager::getInstance()->saved();
80
+
}
81
+
}
82
+
```
83
+
84
+
### Pre-filling of text
85
+
86
+
The automatic pre-filling of text when creating a new entry with previously marked quotes is no longer supported and has been removed in the new version.
87
+
88
+
### Changes to the FormBuilder
89
+
90
+
The functions `WysiwygFormContainer::quoteData()` and `WysiwygFormField::quoteData()` are no longer required, it is sufficient to use the function `supportQuotes()`.
91
+
The functions `MessageQuoteManager::readFormParameters()` and `MessageQuoteManager::saved()` are called by `WysiwygFormField` and don't need to be called separately.
0 commit comments