{"id":16233419,"url":"https://github.com/helios-ag/fmtinymcebundle","last_synced_at":"2025-03-19T14:31:29.428Z","repository":{"id":44636324,"uuid":"44680984","full_name":"helios-ag/FMTinyMCEBundle","owner":"helios-ag","description":"Easily add TinyMCE WYSIWYG Text Editor to your Symfony Project","archived":false,"fork":false,"pushed_at":"2024-03-14T10:32:06.000Z","size":620,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-17T05:15:17.660Z","etag":null,"topics":["elfinder","symfony","symfony-bundle","tinymce","tinymce-editor","wysiwyg","wysiwyg-editor"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helios-ag.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-21T14:15:31.000Z","updated_at":"2024-07-15T13:27:51.381Z","dependencies_parsed_at":"2024-03-14T11:43:05.703Z","dependency_job_id":null,"html_url":"https://github.com/helios-ag/FMTinyMCEBundle","commit_stats":{"total_commits":68,"total_committers":2,"mean_commits":34.0,"dds":"0.014705882352941124","last_synced_commit":"23773266c9b0ce89e08a3cdf9dd6d0b3387fd4b1"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helios-ag%2FFMTinyMCEBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helios-ag%2FFMTinyMCEBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helios-ag%2FFMTinyMCEBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helios-ag%2FFMTinyMCEBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helios-ag","download_url":"https://codeload.github.com/helios-ag/FMTinyMCEBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244444662,"owners_count":20453770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elfinder","symfony","symfony-bundle","tinymce","tinymce-editor","wysiwyg","wysiwyg-editor"],"created_at":"2024-10-10T13:12:36.768Z","updated_at":"2025-03-19T14:31:29.167Z","avatar_url":"https://github.com/helios-ag.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"FMTinyMCEBundle\n================\n\n[TinyMCE](https://github.com/tinymce/tinymce) integration in Symfony\n\nThe purpose of bundle is to provide seamless integration between elFinder and TinyMCE editor.\n\n### Code Quality Assurance ###\n\n|CoverAlls| License | StyleCI | Version Status |\n|-----------------|-----------------|-----------------|-----------------|\n|[![Coverage Status](https://coveralls.io/repos/helios-ag/FMTinyMCEBundle/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/helios-ag/FMTinyMCEBundle?branch=master)|[![License](https://poser.pugx.org/helios-ag/fm-tinymce-bundle/license.svg)](https://packagist.org/packages/helios-ag/fm-tinymce-bundle)|[![StyleCI](https://styleci.io/repos/44680984/shield)](https://styleci.io/repos/44680984)|[![Latest Stable Version](https://poser.pugx.org/helios-ag/fm-tinymce-bundle/v/stable.svg)](https://packagist.org/packages/helios-ag/fm-tinymce-bundle) [![Latest Unstable Version](https://poser.pugx.org/helios-ag/fm-tinymce-bundle/v/unstable.svg)](https://packagist.org/packages/helios-ag/fm-tinymce-bundle)\n\n\n| Downloads |\n|-----------|\n|[![Total Downloads](https://poser.pugx.org/helios-ag/fm-tinymce-bundle/downloads.svg)](https://packagist.org/packages/helios-ag/fm-tinymce-bundle)\n\n\n**TinyMCE** is a platform independent web-based JavaScript WYSIWYG HTML editor control released as open source under LGPL.\n\nTinyMCE enables you to convert HTML TEXTAREA fields or other HTML elements to editor instances.\n\n\n**Table of contents**\n\n- [Installation](#installation)\n    - [Step 1: Installation](#step-1-installation)\n    - [Step 2: Enable the bundle](#step-2-enable-the-bundle)\n- [Basic configuration](#basic-configuration)\n    - [Add configuration options to your config.yml](#add-configuration-options-to-your-configyml)\n\n## Installation\n\n### Step 1: Installation\n\nAdd FMTinyMCEBundle to your composer.json:\n\n```json\n{\n    \"require\": {\n        \"helios-ag/fm-tinymce-bundle\": \"~1\"\n    }\n}\n```\n\nIf you want to override default assets directory of Richfilemanager, add next option.\nBy default, assets copied to `web/assets/tinymce` or `public/assets/tinymce`\ndepending on Symfony version\n\n```json\n{\n    \"config\": {\n        \"tinymce-dir\": \"web/assets/\"\n    }\n}\n```\n\nAdd composer script\n\n`\"FM\\\\TinyMCEBundle\\\\Composer\\\\TinyMCEScriptHandler::copy\",`\n\nto scripts section of composer.json\n\n```json\n{\n  \"scripts\": {\n      \"symfony-scripts\": [\n          \"Incenteev\\\\ParameterHandler\\\\ScriptHandler::buildParameters\",\n          \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::buildBootstrap\",\n          \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::clearCache\",\n          \"FM\\\\TinyMCEBundle\\\\Composer\\\\TinyMCEcriptHandler::copy\",\n          \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::installAssets\",\n          \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::installRequirementsFile\",\n          \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::prepareDeploymentTarget\"\n      ]\n    }\n}\n```\n\nNow tell the composer to download the bundle by running the command:\n\n```sh\ncomposer update helios-ag/fm-tinymce-bundle\n```\n\n### Step 2: Enable the bundle\n\nEnable the bundle in the kernel:\n\n```php\n\u003c?php\n// app/AppKernel.php\n\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n        new FM\\TinyMCEBundle\\FMTinyMCEBundle(),\n    );\n}\n```\n\n\n## Basic configuration\n\n### Add configuration options to your config.yml\n\n```yaml\nfm_tinymce:\n    instances:\n        first_instance:\n            language: en_US\n            width: 300\n            height: 400\n        my_advanced_configuration:\n             locale: ru_RU\n```\n\n##Advanced Configuration\n\nTo make story short, here example of Integration between TinyMCE and Elfinder bundles\n\n```yaml\nfm_tinymce:\n    instances:            # Required\n        elfinder:\n            language: ru\n            image_advtab:         true\n            file_picker_callback: elFinderBrowser\n            filebrowser_type:     fm_elfinder\n            filebrowser:\n                route:                elfinder\n                route_parameters:\n                    instance: tinymce\n\n```\n\nand configuration for ElFinderBrowser\n\n```yaml\nfm_elfinder:\n    instances:\n        tinymce:\n            language: ru\n            editor: tinymce4 #\n            include_assets: true\n            relative_path: true\n            connector:\n                roots:       # at least one root must be defined\n                    uploads:\n                        show_hidden: false\n                        driver: LocalFileSystem\n                        path: uploads\n                        upload_allow: ['all']\n```\n\nFull configuration reference example\n\n\n```yaml\nfm_tinymce:\n    enable:               true\n    inline:               false\n    base_path:            assets/tinymce/\n    js_path:              assets/tinymce/tinymce.min.js\n    instances:\n        default:\n            language:             en_US\n            width:                600\n            height:               300\n            theme:                modern\n            toolbar_item_size:    small\n            menubar:              file edit insert view format table tools\n            image_advtab:         false\n            templates:\n                templates:\n                    title:                ~\n                    content:              ~\n            plugins:              \"\"\n            relative_urls:        false\n            convert_urls:         false\n            toolbars:\n                toolbar1:         undo redo | styleselect | bold italic | link image\n            filebrowser_type:     fm_elfinder\n            file_picker_callback: elFinderBrowser\n            filebrowser:\n                url:                  http://localhost/elfinder\n                route:                elfinder\n                route_parameters:\n                    instance: default\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelios-ag%2Ffmtinymcebundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelios-ag%2Ffmtinymcebundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelios-ag%2Ffmtinymcebundle/lists"}