Remove controller action for Markdown preview
This commit is contained in:
parent
a1d795baaa
commit
fa372b7b84
|
|
@ -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)
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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() ?>">
|
||||
|
|
|
|||
Loading…
Reference in New Issue