mirror of
https://github.com/typemill/typemill.git
synced 2025-10-19 00:26:13 +02:00
Version 1.5.1: Fix code syntax in raw editor, fix codeblocks, fix post errors, load post-vue conditionally
This commit is contained in:
@@ -722,7 +722,7 @@ class ControllerAuthorArticleApi extends ControllerAuthor
|
||||
# update the structure for editor
|
||||
$this->setFreshStructureDraft();
|
||||
|
||||
$folder = Folder::getItemWithKeyPath($this->structureYaml, $folderKeyPath);
|
||||
$folder = Folder::getItemWithKeyPath($this->structureDraft, $folderKeyPath);
|
||||
|
||||
# activate this if you want to redirect after creating the page...
|
||||
# $url = $this->uri->getBaseUrl() . '/tm/content/' . $this->settings['editor'] . $folder->urlRelWoF . '/' . $slug;
|
||||
@@ -1031,7 +1031,6 @@ class ControllerAuthorArticleApi extends ControllerAuthor
|
||||
{
|
||||
$content[0] = trim($content[0], "# ");
|
||||
}
|
||||
|
||||
return $response->withJson(array('data' => $content, 'errors' => false));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user