1
0
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:
trendschau
2021-11-21 15:39:45 +01:00
parent 63c8b204d7
commit 1f06da7b19
9 changed files with 22 additions and 9 deletions

View File

@@ -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));
}