19 declare(strict_types=1);
42 public const ROOT =
'root';
43 public const FORM =
'form';
56 FullEditorServices $services,
73 return $this->services->manipulatorAdapter();
87 yield
from $this->form_content->content(
95 yield
from $this->table_content->content(
103 yield
from $this->panel_content->content(
112 yield
from $this->root_content->content(
120 throw new \ilMDEditorException(
121 'Invalid content type.' 129 if ($elements[0]->isRoot()) {
132 $tag = $this->editor_dictionary->tagForElement($elements[0]);
133 if (!$tag?->isLastInTree()) {
136 if ($tag?->isCollected()) {
147 $res = $this->navigator_factory->navigator(
150 )->elementsAtFinalStep();
151 return iterator_to_array(
$res);