1 ckeditor5.upgrade.inc | ckeditor5_upgrade_format($format) |
Upgrade a text format configuration from CKEditor 4 to CKEditor 5.
Parameters
stdClass $format: The text format to be upgraded.
Return value
stdClass: The modified text format, ready to be saved with filter_format_save().
See also
File
- core/
modules/ ckeditor5/ ckeditor5.upgrade.inc, line 84 - CKEditor 4 to CKEditor 5 upgrade code.
Code
function ckeditor5_upgrade_format($format) {
$warnings = array();
return _ckeditor5_upgrade_format($format, $warnings);
}