|
|
|
@ -7,6 +7,7 @@ use PicoContentEditor\Auth; |
|
|
|
|
use PicoContentEditor\Edits; |
|
|
|
|
use PicoContentEditor\Uploads; |
|
|
|
|
use PicoContentEditor\EditorsHandlers\ContentTools; |
|
|
|
|
use SeaCMS\Api\ApiAware; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* A content editor plugin for Pico 3, using ContentTools. |
|
|
|
@ -19,7 +20,7 @@ use PicoContentEditor\EditorsHandlers\ContentTools; |
|
|
|
|
* @link https://github.com/nliautaud/pico-content-editor |
|
|
|
|
* @link http://picocms.org |
|
|
|
|
*/ |
|
|
|
|
class PicoContentEditor extends AbstractPicoPlugin |
|
|
|
|
class PicoContentEditor extends AbstractPicoPlugin implements ApiAware |
|
|
|
|
{ |
|
|
|
|
/** |
|
|
|
|
* Pico API version. |
|
|
|
@ -43,6 +44,16 @@ class PicoContentEditor extends AbstractPicoPlugin |
|
|
|
|
*/ |
|
|
|
|
private $uploads; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* return api routes |
|
|
|
|
* @return array |
|
|
|
|
*/ |
|
|
|
|
public function registerOnPageRenderedApiRoutes():array |
|
|
|
|
{ |
|
|
|
|
return [ |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Init plugin, process page edits and file uploads. |
|
|
|
|
* |
|
|
|
|