--- /dev/null
+# Migrating from WoltLab Suite 6.0 - PHP
+
+## HtmlUpcastProcessor
+
+The `HtmlUpcastProcessor` is intended for use in all forms where the CKEditor5 is available as an input field. Its
+primary purpose is to inject necessary information into the HTML to ensure correct rendering within the editor. It is
+important to note that the `HtmlUpcastProcessor` is not designed for content storage and should be utilized within
+the `assignVariables` method.
+
+#### Example
+
+```php
+namespace wcf\form;
+
+use wcf\system\html\upcast\HtmlUpcastProcessor;
+
+class MyForm extends AbstractForm {
+
+ public string $messageObjectType = ''; // object type of `com.woltlab.wcf.message`
+ public string $text = '';
+
+ public function assignVariables() {
+ parent::assignVariables();
+
+ $upcastProcessor = new HtmlUpcastProcessor();
+ $upcastProcessor->process($this->text ?? '', $this->messageObjectType, 0);
+ WCF::getTPL()->assign('text', $upcastProcessor->getHtml());
+ }
+}
+```
- 'Migration':
- 'From WoltLab Suite 6.0':
+ - 'PHP API': 'migration/wsc60/php.md'
- 'Deprecations and Removals': 'migration/wsc60/deprecations_removals.md'
- 'From WoltLab Suite 5.5':
- 'PHP API': 'migration/wsc55/php.md'