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 /app/Controller | |
parent | a1d795baaaf940819241ac794c7af209d0b4667e (diff) |
Remove controller action for Markdown preview
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/TaskHelper.php | 16 |
1 files changed, 0 insertions, 16 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 |