Updated edit events

This commit is contained in:
markseu 2024-05-07 07:25:25 +02:00
parent 713faebf15
commit 811de1e89f
3 changed files with 9 additions and 9 deletions

View file

@ -213,14 +213,14 @@ Status: available
system/workers/dutch.php: dutch.php, create, update
Extension: Edit
Version: 0.9.7
Version: 0.9.8
Description: Edit your website in a web browser.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-edit/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-edit
DocumentationLanguage: en, de, sv
Published: 2024-05-06 23:17:11
Published: 2024-05-07 07:20:40
Status: available
system/workers/edit.php: edit.php, create, update
system/workers/edit.css: edit.css, create, update
@ -229,14 +229,14 @@ system/workers/edit-stack.svg: edit-stack.svg, create, update
content/shared/page-new-default.md: page-new-default.md, create, optional
Extension: Emoji
Version: 0.9.3
Version: 0.9.4
Description: Lots and lots of emoji.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-emoji/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-emoji
DocumentationLanguage: en, de, sv
Published: 2024-05-06 23:16:06
Published: 2024-05-07 07:21:20
Status: available
system/workers/emoji.php: emoji.php, create, update
system/workers/emoji.css: emoji.css, create, update

View file

@ -20,14 +20,14 @@ system/layouts/navigation.html: navigation.html, create, update, careful
system/layouts/pagination.html: pagination.html, create, update, careful
Extension: Edit
Version: 0.9.7
Version: 0.9.8
Description: Edit your website in a web browser.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-edit/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-edit
DocumentationLanguage: en, de, sv
Published: 2024-05-06 23:17:11
Published: 2024-05-07 07:20:40
Status: available
system/workers/edit.php: edit.php, create, update
system/workers/edit.css: edit.css, create, update

View file

@ -2,7 +2,7 @@
// Edit extension, https://github.com/annaesvensson/yellow-edit
class YellowEdit {
const VERSION = "0.9.7";
const VERSION = "0.9.8";
public $yellow; // access to API
public $response; // web response
public $merge; // text merge
@ -1079,7 +1079,7 @@ class YellowEditResponse {
$page = new YellowPage($this->yellow);
$page->setRequestInformation($scheme, $address, $base, $location, $fileName, false);
$page->parseMeta($rawData, 200);
$this->editContentFile($page, "normalise", $this->userEmail);
$this->editContentFile($page, "precreate", $this->userEmail);
if ($this->yellow->content->find($page->location)) {
$page->location = $this->getPageNewLocation($page->rawData, $page->location, $page->get("editNewLocation"));
$page->fileName = $this->getPageNewFile($page->location, $page->fileName, $page->get("editNewPrefix"));
@ -1113,7 +1113,7 @@ class YellowEditResponse {
$page = new YellowPage($this->yellow);
$page->setRequestInformation($scheme, $address, $base, $location, $fileName, false);
$page->parseMeta($rawData, 200);
$this->editContentFile($page, "normalise", $this->userEmail);
$this->editContentFile($page, "preedit", $this->userEmail);
$pageSource = new YellowPage($this->yellow);
$pageSource->setRequestInformation($scheme, $address, $base, $location, $fileName, false);
$pageSource->parseMeta($rawDataSource, 200);