public function importRichText()
    {
        $this->log('Parsing rich texts...');
        //now we have to parse everything in case there is a rich text
        //rich texts must be located in the tools section
        $data = $this->data;
        //@todo remove the line for claroline v6
        $this->container->get('claroline.importer.rich_text_formatter')->setData($data);
        $this->container->get('claroline.importer.rich_text_formatter')->setWorkspace($this->workspace);

        foreach ($data['tools'] as $tool) {
            $importer = $this->getImporterByName($tool['tool']['type']);

            if (isset($tool['tool']['data']) && $importer instanceof RichTextInterface) {
                $data['data'] = $tool['tool']['data'];
                $importer->format($data);
            }
        }

        $this->om->flush();
    }