From 405a7f67fc63bc636b84fbd2d1a0d11a855eeadd Mon Sep 17 00:00:00 2001 From: LogansUA Date: Tue, 29 Mar 2016 15:05:00 +0300 Subject: [PATCH] Prepare for v1.0 release --- README.md | 30 ++++++++++++++++-------------- composer.json | 17 ++++++++--------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 018733b3..9b4db420 100644 --- a/README.md +++ b/README.md @@ -4,20 +4,22 @@ This bundle makes it very easy to add the TinyMCE WYSIWYG editor to your Symfony ## Installation -### Installation by Composer +### Choose the appropriate version -> NOTE! This version of TinyMCE bundle contains TinyMCE version 4 and works only with Symfony version >= 2.1. To upgrade your configuration, please read UPGRADE.md +| Bundle Version (X.Y) | PHP | Symfony | Comment | +|:--------------------:|:-------:|:------------------:|------------------------------------------| +| 2.0 | >= 5.4 | >= 3.0 | Actual version | +| 1.0 | >= 5.4 | >= 2.1 and <= 2.8 | | -Add TinyMCE bundle as a dependency to the composer.json of your application +> NOTE! To upgrade your configuration, please read UPGRADE.md - "require": { - ... - "stfalcon/tinymce-bundle": "dev-master" - ... - }, +### Add TinyMCE bundle as a dependency of your application via composer +``` +$ php composer.phar require stfalcon/tinymce-bundle='X.Y' +``` -## Add StfalconTinymceBundle to your application kernel. +### Add StfalconTinymceBundle to your application kernel. ```php // app/AppKernel.php @@ -32,10 +34,10 @@ Add TinyMCE bundle as a dependency to the composer.json of your application } ``` -The bundle needs to copy the resources necessary to the web folder. You can use the command below: +### The bundle needs to copy the resources necessary to the web folder. You can use the command below: -```bash - php app/console assets:install web/ +``` +$ php app/console assets:install web/ ``` ## Include in template @@ -50,10 +52,10 @@ You can also override the default configuration by passing an option like this: ```twig {{ tinymce_init({'use_callback_tinymce_init': true, 'theme': {'simple': {'menubar': false}}}) }} -``` +``` or - + ``` {{ tinymce_init({ theme: {'simple':{'language': app.request.locale, 'height': 500 }}, diff --git a/composer.json b/composer.json index ad1d5682..6d462626 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "stfalcon/tinymce-bundle", "description": "This Bundle integrates TinyMCE WYSIWYG editor into a Symfony2 project.", - "keywords": ["wysiwyg", "tinymce", "editor"], + "keywords": ["wysiwyg", "tinymce", "editor", "symfony2", "bundle"], "type": "symfony-bundle", "license": "MIT", "authors": [ @@ -18,10 +18,14 @@ { "name": "Symfony Community", "homepage": "https://github.com/stfalcon/TinymceBundle/contributors" - } + } ], + "support": { + "email": "logansoleg@gmail.com", + "issues": "https://github.com/stfalcon/TinymceBundle/issues" + }, "require": { - "php": ">=5.3.0", + "php": ">=5.4.0", "symfony/symfony": ">=2.1" }, "autoload": { @@ -29,10 +33,5 @@ "Stfalcon\\Bundle\\TinymceBundle": "" } }, - "target-dir" : "Stfalcon/Bundle/TinymceBundle", - "extra": { - "branch-alias": { - "dev-master": "0.3.x-dev" - } - } + "target-dir" : "Stfalcon/Bundle/TinymceBundle" }