public function editor($template, $data = null, array $params = [])
    {
        $resource = 'templates/'.$template.'/editor';
        $params = array_merge([
            'key' => $this->key,
            'workspace' => $this->workspace,
            'signature' => $this->createSignature($resource)
        ], $params);

        if ($data)
        {
            $params['data'] = self::dataToString($data);
        }

        return $this->baseUrl.$resource.'?'.http_build_query($params);
    }