Remove controller action for Markdown preview

This commit is contained in:
Frederic Guillot 2016-03-24 21:50:49 -04:00
parent a1d795baaa
commit fa372b7b84
2 changed files with 0 additions and 17 deletions

View File

@ -10,22 +10,6 @@ namespace Kanboard\Controller;
*/
class TaskHelper extends Base
{
/**
* Render Markdown text and reply with the HTML Code
*
* @access public
*/
public function preview()
{
$payload = $this->request->getJson();
if (empty($payload['text'])) {
$this->response->html('<p>'.t('Nothing to preview...').'</p>');
}
$this->response->html($this->helper->text->markdown($payload['text']));
}
/**
* Task autocompletion (Ajax)
*

View File

@ -36,7 +36,6 @@
</head>
<body data-status-url="<?= $this->url->href('app', 'status') ?>"
data-login-url="<?= $this->url->href('auth', 'login') ?>"
data-markdown-preview-url="<?= $this->url->href('TaskHelper', 'preview') ?>"
data-keyboard-shortcut-url="<?= $this->url->href('Doc', 'shortcuts') ?>"
data-timezone="<?= $this->app->getTimezone() ?>"
data-js-lang="<?= $this->app->jsLang() ?>">