protected function getFormat(BBcodeElementNodeInterface $el)
    {
        $options = $el->getAttribute();
        $options = json_decode($options['media'], true);

        return is_array($options) && array_key_exists('format', $options) ? $options['format'] : MediaInterface::MEDIA_ORIGINAL;
    }