Skip to content

Commit 4ce0143

Browse files
committed
Released v1.3.3
1 parent 0b1f19f commit 4ce0143

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v1.3.3
2+
## 02-03-2021
3+
4+
1. [](#bugfix)
5+
* Worked around an error while saving a page in a new language without Flex Pages
6+
17
# v1.3.2
28
## 16-01-2021
39

blueprints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: TinyMCE Editor Integration
2-
version: 1.3.2
2+
version: 1.3.3
33
description: This is _the_ TinyMCE integration plugin for those not chosen to love Markdown over all comfort.
44
icon: edit
55
author:

tinymce-editor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function getSubscribedEvents() {
2121
}
2222
public function onAdminSave($event) {
2323
$page = $event["object"];
24-
if($page instanceof Page && $page->folder() != $page->getOriginal()->folder() && $page->rawMarkdown() != "") {
24+
if($page instanceof Page && $page->getOriginal() instanceof Page && $page->folder() != $page->getOriginal()->folder() && $page->rawMarkdown() != "") {
2525
$newdir = explode(".", $page->folder());
2626
$newdir = $this->grav["uri"]->rootUrl() . $page->parent()->route() . "/" . end($newdir) . "/";
2727
$dom = new \DOMDocument("1.0", "UTF-8");

0 commit comments

Comments
 (0)