1 <?php
2
3 4 5 6 7 8 9 10
11
12 namespace Icybee\Modules\Contents;
13
14 15 16
17 class SaveOperation extends \Icybee\Modules\Nodes\SaveOperation
18 {
19 20 21
22 protected function lazy_get_properties()
23 {
24 global $core;
25
26 $properties = parent::lazy_get_properties();
27
28 if (isset($properties['body']) && isset($properties['editor']))
29 {
30 $editor = $core->editors[$properties['editor']];
31
32 $properties['body'] = $editor->serialize($properties['body']);
33 }
34
35 return $properties;
36 }
37 }