From d93e5c03530f0da8f58c6f5964b2563b828180f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dufraisse?= Date: Wed, 22 Feb 2023 19:03:23 +0100 Subject: [PATCH] feat(pico-content-editor): first step --- composer.json | 7 ++- composer.lock | 117 ++++++++++++++++++++++++++++++++++++++++++++- includes/head.twig | 4 ++ includes/home.twig | 3 ++ 4 files changed, 129 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0b519fe..c00c8b7 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,8 @@ "license": "EUPL-1.2", "minimum-stability": "dev", "require": { - "seacms/app": "dev-master" + "seacms/app": "dev-master", + "seacms/pico-content-editor": "master" }, "extra": { "installer-name": "seacms" @@ -17,6 +18,10 @@ "type": "vcs", "url": "https://git.defis.info/SeaCMS/seacms-app" }, + { + "type": "vcs", + "url": "https://git.defis.info/SeaCMS/pico-content-editor" + }, { "type": "package", "package": { diff --git a/composer.lock b/composer.lock index fabb7cb..cfa6267 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "71a57818ccd2bd6995883df3e0c06795", + "content-hash": "4bbfc746ab131a7cf6b195300eb241b7", "packages": [ { "name": "erusev/parsedown", @@ -212,6 +212,63 @@ } } }, + { + "name": "pixel418/markdownify", + "version": "v2.3.1", + "source": { + "type": "git", + "url": "https://github.com/Elephant418/Markdownify.git", + "reference": "891be2176858712c6c4581da410e96fc2019e3f0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Elephant418/Markdownify/zipball/891be2176858712c6c4581da410e96fc2019e3f0", + "reference": "891be2176858712c6c4581da410e96fc2019e3f0", + "shasum": "" + }, + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8" + }, + "type": "lib", + "autoload": { + "psr-4": { + "Markdownify\\": "src", + "Test\\Markdownify\\": "test" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Milian Wolff", + "email": "mail@milianw.de", + "homepage": "http://milianw.de" + }, + { + "name": "Thomas Zilliox", + "email": "hello@tzi.fr", + "homepage": "https://tzi.fr" + } + ], + "description": "The HTML to Markdown converter for PHP ", + "homepage": "https://github.com/elephant418/Markdownify", + "keywords": [ + "converter", + "html", + "markdown", + "markdownify" + ], + "support": { + "issues": "https://github.com/Elephant418/Markdownify/issues", + "source": "https://github.com/Elephant418/Markdownify/tree/master" + }, + "time": "2019-01-22T16:33:43+00:00" + }, { "name": "seacms/app", "version": "dev-master", @@ -263,6 +320,64 @@ ], "time": "2023-02-21T22:51:48+00:00" }, + { + "name": "seacms/pico-content-editor", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://git.defis.info/SeaCMS/pico-content-editor", + "reference": "88c1de4fcd7c92197f591dd5140b930ffa832603" + }, + "require": { + "php": "^8.0", + "pixel418/markdownify": "^2.3" + }, + "default-branch": true, + "type": "pico-plugin", + "autoload": { + "psr-4": { + "PicoContentEditor\\": "src/" + }, + "classmap": [ + "PicoContentEditor.php" + ] + }, + "license": [ + "EUPL-1.2" + ], + "authors": [ + { + "name": "Nicolas Liautaud", + "homepage": "https://github.com/nliautaud", + "role": "Lead Developer for fork" + }, + { + "name": "Jérémy Dufraisse", + "homepage": "https://github.com/J9rem", + "role": "SeaCMS developer" + }, + { + "name": "Thatoo", + "homepage": "https://github.com/Thatoo", + "role": "SeaCMS developer" + } + ], + "description": "A WYSIWYG content editor plugin for SeaCMS", + "homepage": "https://git.defis.info/SeaCMS/pico-content-editor", + "keywords": [ + "editor", + "pico", + "pico-content-editor", + "picocms", + "picocms-plugin" + ], + "support": { + "docs": "https://git.defis.info/SeaCMS/pico-content-editor/src/branch/master/README.md", + "issues": "https://git.defis.info/SeaCMS/pico-content-editor/issues", + "source": "https://git.defis.info/SeaCMS/pico-content-editor" + }, + "time": "2023-02-22T18:00:33+00:00" + }, { "name": "symfony/polyfill-ctype", "version": "dev-main", diff --git a/includes/head.twig b/includes/head.twig index eab36a2..ec7dd7f 100644 --- a/includes/head.twig +++ b/includes/head.twig @@ -23,11 +23,15 @@ + {{ include('@PicoContentEditor/head-styles.twig') }} + + {{ include('@PicoContentEditor/head-scripts.twig') }} + {# Contact Form Scripts #} {% if index.contact.form.enabled and not index.contact.disabled and not single_page_mode %} diff --git a/includes/home.twig b/includes/home.twig index 7fff71b..b3a3653 100644 --- a/includes/home.twig +++ b/includes/home.twig @@ -4,6 +4,9 @@ {% from "includes/actions.twig" import actions %} {% from "includes/video.twig" import video %} +
+

Text modifiable click here

+
>