Remove controller action for Markdown preview
This commit is contained in:
@@ -10,22 +10,6 @@ namespace Kanboard\Controller;
|
|||||||
*/
|
*/
|
||||||
class TaskHelper extends Base
|
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)
|
* Task autocompletion (Ajax)
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -36,7 +36,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body data-status-url="<?= $this->url->href('app', 'status') ?>"
|
<body data-status-url="<?= $this->url->href('app', 'status') ?>"
|
||||||
data-login-url="<?= $this->url->href('auth', 'login') ?>"
|
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-keyboard-shortcut-url="<?= $this->url->href('Doc', 'shortcuts') ?>"
|
||||||
data-timezone="<?= $this->app->getTimezone() ?>"
|
data-timezone="<?= $this->app->getTimezone() ?>"
|
||||||
data-js-lang="<?= $this->app->jsLang() ?>">
|
data-js-lang="<?= $this->app->jsLang() ?>">
|
||||||
|
|||||||
Reference in New Issue
Block a user