From e3ab4210a1384126d5a47f6fdad2cf9c54d53c82 Mon Sep 17 00:00:00 2001 From: "Adrienne L. Travis" Date: Mon, 16 Oct 2023 15:23:41 -0700 Subject: [PATCH] feat(#2): adding CKEditor plugin --- composer.json | 1 + composer.lock | 136 +++++++++++++++++- .../1a4c79b2-ddf3-4b72-95e7-852ab2ff7a8e.yaml | 15 ++ config/project/project.yaml | 7 +- 4 files changed, 157 insertions(+), 2 deletions(-) create mode 100644 config/project/ckeditor/configs/1a4c79b2-ddf3-4b72-95e7-852ab2ff7a8e.yaml diff --git a/composer.json b/composer.json index 90dc0c7..b79233e 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,7 @@ { "require": { "craftcms/aws-s3": "^2.0", + "craftcms/ckeditor": "^3.6", "craftcms/cms": "^4.4.0", "verbb/navigation": "^2.0", "vlucas/phpdotenv": "^5.4.0" diff --git a/composer.lock b/composer.lock index adae33d..da3b99e 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": "b083d22e53b16e720cc398a4c7a85ba3", + "content-hash": "b59728830f49f84de2c6e19904505532", "packages": [ { "name": "aws/aws-crt-php", @@ -677,6 +677,58 @@ }, "time": "2023-03-16T22:49:16+00:00" }, + { + "name": "craftcms/ckeditor", + "version": "3.6.0", + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/craftcms/ckeditor/zipball/69a76a6ec028a4ca93962f47e23bc3f3bb15417e", + "reference": "69a76a6ec028a4ca93962f47e23bc3f3bb15417e", + "shasum": "" + }, + "require": { + "craftcms/cms": "^4.5.0-beta.2", + "craftcms/html-field": "^2.0.0-alpha.2", + "nystudio107/craft-code-editor": "^1.0.8", + "php": "^8.0.2" + }, + "type": "craft-plugin", + "extra": { + "name": "CKEditor", + "handle": "ckeditor", + "documentationUrl": "https://github.com/craftcms/ckeditor/blob/master/README.md" + }, + "autoload": { + "psr-4": { + "craft\\ckeditor\\": "src/" + } + }, + "license": [ + "GPL-3.0-or-later" + ], + "authors": [ + { + "name": "Pixel & Tonic", + "homepage": "https://pixelandtonic.com/" + } + ], + "description": "Edit rich text content in Craft CMS using CKEditor.", + "keywords": [ + "ckeditor", + "cms", + "craftcms", + "html", + "yii2" + ], + "support": { + "email": "support@craftcms.com", + "issues": "https://github.com/craftcms/ckeditor/issues?state=open", + "source": "https://github.com/craftcms/ckeditor", + "docs": "https://github.com/craftcms/ckeditor/blob/master/README.md", + "rss": "https://github.com/craftcms/ckeditor/commits/master.atom" + }, + "time": "2023-09-13T15:54:45+00:00" + }, { "name": "craftcms/cms", "version": "4.5.6.1", @@ -817,6 +869,43 @@ }, "time": "2022-05-03T21:28:40+00:00" }, + { + "name": "craftcms/html-field", + "version": "2.0.8", + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/craftcms/html-field/zipball/4797c9cb0397e6d69d25d9716a75f7b47c69fd3a", + "reference": "4797c9cb0397e6d69d25d9716a75f7b47c69fd3a", + "shasum": "" + }, + "require": { + "php": "^8.0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "craft\\htmlfield\\": "src/" + } + }, + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Pixel & Tonic", + "homepage": "https://pixelandtonic.com/" + } + ], + "description": "Base class for Craft CMS field types with HTML values.", + "support": { + "email": "support@craftcms.com", + "issues": "https://github.com/craftcms/html-field/issues?state=open", + "source": "https://github.com/craftcms/html-field", + "docs": "https://github.com/craftcms/html-field/blob/main/README.md", + "rss": "https://github.com/craftcms/html-field/commits/main.atom" + }, + "time": "2023-09-17T11:24:51+00:00" + }, { "name": "craftcms/plugin-installer", "version": "1.6.0", @@ -2139,6 +2228,51 @@ ], "time": "2023-08-25T10:54:48+00:00" }, + { + "name": "nystudio107/craft-code-editor", + "version": "1.0.13", + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nystudio107/craft-code-editor/zipball/66a1ba02c0ad5de8e89d4632d5e4da1dfa193dce", + "reference": "66a1ba02c0ad5de8e89d4632d5e4da1dfa193dce", + "shasum": "" + }, + "require": { + "phpdocumentor/reflection-docblock": "^5.0.0" + }, + "type": "yii2-extension", + "extra": { + "bootstrap": "nystudio107\\codeeditor\\CodeEditor" + }, + "autoload": { + "psr-4": { + "nystudio107\\codeeditor\\": "src/" + } + }, + "license": [ + "MIT" + ], + "authors": [ + { + "name": "nystudio107", + "homepage": "https://nystudio107.com" + } + ], + "description": "Provides a code editor field with Twig & Craft API autocomplete", + "keywords": [ + "Craft", + "Monaco", + "cms", + "code", + "craftcms", + "css", + "editor", + "javascript", + "markdown", + "twig" + ], + "time": "2023-08-16T02:31:19+00:00" + }, { "name": "paragonie/random_compat", "version": "v9.99.100", diff --git a/config/project/ckeditor/configs/1a4c79b2-ddf3-4b72-95e7-852ab2ff7a8e.yaml b/config/project/ckeditor/configs/1a4c79b2-ddf3-4b72-95e7-852ab2ff7a8e.yaml new file mode 100644 index 0000000..d8cf9ae --- /dev/null +++ b/config/project/ckeditor/configs/1a4c79b2-ddf3-4b72-95e7-852ab2ff7a8e.yaml @@ -0,0 +1,15 @@ +headingLevels: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 +listPlugin: List +name: Simple +toolbar: + - heading + - '|' + - bold + - italic + - link diff --git a/config/project/project.yaml b/config/project/project.yaml index dae89ba..a900942 100644 --- a/config/project/project.yaml +++ b/config/project/project.yaml @@ -1,4 +1,4 @@ -dateModified: 1697493313 +dateModified: 1697494114 email: fromEmail: admin@rijam.ml1.net fromName: 'GigaDB CMS' @@ -25,6 +25,7 @@ fs: url: $OBJECT_STORAGE_ENDPOINT meta: __names__: + 1a4c79b2-ddf3-4b72-95e7-852ab2ff7a8e: Simple # Simple 2c79ab96-cdb4-4f4d-b481-9137d17ee4d8: 'Image Files' # Image Files 9d3df531-4efc-403f-9ce6-26de65b4c56e: 'GigaDB CMS' # GigaDB CMS 794caefa-4c9a-4eca-8f28-00d0f726f290: Common # Common @@ -34,6 +35,10 @@ plugins: edition: standard enabled: true schemaVersion: '2.0' + ckeditor: + edition: standard + enabled: true + schemaVersion: 3.0.0.0 navigation: edition: standard enabled: true