diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-24 21:50:49 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-24 21:50:49 -0400 |
commit | fa372b7b846893afdd5c1a1fb888903eea4ab159 (patch) | |
tree | 1a9df8f05b0981acf1b4f3ccc7bf51454d5c50ee | |
parent | a1d795baaaf940819241ac794c7af209d0b4667e (diff) |
Remove controller action for Markdown preview
-rw-r--r-- | app/Controller/TaskHelper.php | 16 | ||||
-rw-r--r-- | app/Template/layout.php | 1 |
2 files changed, 0 insertions, 17 deletions
diff --git a/app/Controller/TaskHelper.php b/app/Controller/TaskHelper.php index 236af33e..7e340a6a 100644 --- a/app/Controller/TaskHelper.php +++ b/app/Controller/TaskHelper.php @@ -11,22 +11,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) * * @access public diff --git a/app/Template/layout.php b/app/Template/layout.php index 74faf487..67924e3e 100644 --- a/app/Template/layout.php +++ b/app/Template/layout.php @@ -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() ?>"> |