Ver Fonte

Updated edit extension, file formats

markseu há 4 anos atrás
pai
commit
d0eb549fde

+ 2 - 2
system/extensions/edit.php

@@ -2,7 +2,7 @@
 // Edit extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/edit
 
 class YellowEdit {
-    const VERSION = "0.8.51";
+    const VERSION = "0.8.52";
     public $yellow;         // access to API
     public $response;       // web response
     public $merge;          // text merge
@@ -15,7 +15,7 @@ class YellowEdit {
         $this->merge = new YellowEditMerge($yellow);
         $this->yellow->system->setDefault("editLocation", "/edit/");
         $this->yellow->system->setDefault("editUploadNewLocation", "/media/@group/@filename");
-        $this->yellow->system->setDefault("editUploadExtensions", ".gif, .jpg, .pdf, .png, .svg, .zip");
+        $this->yellow->system->setDefault("editUploadExtensions", ".gif, .jpg, .mp3, .ogg, .pdf, .png, .svg, .zip");
         $this->yellow->system->setDefault("editKeyboardShortcuts", "ctrl+b bold, ctrl+i italic, ctrl+k strikethrough, ctrl+e code, ctrl+s save, ctrl+alt+p preview");
         $this->yellow->system->setDefault("editToolbarButtons", "auto");
         $this->yellow->system->setDefault("editEndOfLine", "auto");

+ 2 - 2
system/extensions/update-current.ini

@@ -39,11 +39,11 @@ content/shared/page-new-default.md: page-new-default.md, create, optional
 content/shared/page-error-404.md: page-error-404.md, create, optional
 
 Extension: Edit
-Version: 0.8.51
+Version: 0.8.52
 Description: Edit your website in a web browser.
 HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/edit
 DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/edit.zip
-Published: 2021-06-30 10:04:13
+Published: 2021-08-16 10:32:46
 Developer: Datenstrom
 Tag: feature
 system/extensions/edit.php: edit.php, create, update

+ 1 - 1
system/extensions/yellow-system.ini

@@ -50,7 +50,7 @@ CommandStaticDefaultFile: index.html
 CommandStaticErrorFile: 404.html
 EditLocation: /edit/
 EditUploadNewLocation: /media/@group/@filename
-EditUploadExtensions: .gif, .jpg, .pdf, .png, .svg, .zip
+EditUploadExtensions: .gif, .jpg, .mp3, .ogg, .pdf, .png, .svg, .zip
 EditKeyboardShortcuts: ctrl+b bold, ctrl+i italic, ctrl+k strikethrough, ctrl+e code, ctrl+s save, ctrl+alt+p preview
 EditToolbarButtons: auto
 EditEndOfLine: auto