helios-ag/fm-tinymce-bundle
Composer 安装命令:
composer require helios-ag/fm-tinymce-bundle
包简介
TinyMCE bundle, adds TinyMCE editor to your Symfony project
README 文档
README
TinyMCE integration in Symfony
The purpose of bundle is to provide seamless integration between elFinder and TinyMCE editor.
Code Quality Assurance
| CoverAlls | License | StyleCI | Version Status |
|---|---|---|---|
| Downloads |
|---|
TinyMCE is a platform independent web-based JavaScript WYSIWYG HTML editor control released as open source under LGPL.
TinyMCE enables you to convert HTML TEXTAREA fields or other HTML elements to editor instances.
Table of contents
Installation
Step 1: Installation
Add FMTinyMCEBundle to your composer.json:
{
"require": {
"helios-ag/fm-tinymce-bundle": "~1"
}
}
If you want to override default assets directory of Richfilemanager, add next option.
By default, assets copied to web/assets/tinymce or public/assets/tinymce
depending on Symfony version
{
"config": {
"tinymce-dir": "web/assets/"
}
}
Add composer script
"FM\\TinyMCEBundle\\Composer\\TinyMCEScriptHandler::copy",
to scripts section of composer.json
{
"scripts": {
"symfony-scripts": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"FM\\TinyMCEBundle\\Composer\\TinyMCEcriptHandler::copy",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
]
}
}
Now tell the composer to download the bundle by running the command:
composer update helios-ag/fm-tinymce-bundle
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new FM\TinyMCEBundle\FMTinyMCEBundle(), ); }
Basic configuration
Add configuration options to your config.yml
fm_tinymce: instances: first_instance: language: en_US width: 300 height: 400 my_advanced_configuration: locale: ru_RU
##Advanced Configuration
To make story short, here example of Integration between TinyMCE and Elfinder bundles
fm_tinymce: instances: # Required elfinder: language: ru image_advtab: true file_picker_callback: elFinderBrowser filebrowser_type: fm_elfinder filebrowser: route: elfinder route_parameters: instance: tinymce
and configuration for ElFinderBrowser
fm_elfinder: instances: tinymce: language: ru editor: tinymce4 # include_assets: true relative_path: true connector: roots: # at least one root must be defined uploads: show_hidden: false driver: LocalFileSystem path: uploads upload_allow: ['all']
Full configuration reference example
fm_tinymce: enable: true inline: false base_path: assets/tinymce/ js_path: assets/tinymce/tinymce.min.js instances: default: language: en_US width: 600 height: 300 theme: modern toolbar_item_size: small menubar: file edit insert view format table tools image_advtab: false templates: templates: title: ~ content: ~ plugins: "" relative_urls: false convert_urls: false toolbars: toolbar1: undo redo | styleselect | bold italic | link image filebrowser_type: fm_elfinder file_picker_callback: elFinderBrowser filebrowser: url: http://localhost/elfinder route: elfinder route_parameters: instance: default
helios-ag/fm-tinymce-bundle 适用场景与选型建议
helios-ag/fm-tinymce-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.81k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2015 年 10 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「tinymce」 「file manager」 「wisywig」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 helios-ag/fm-tinymce-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 helios-ag/fm-tinymce-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 helios-ag/fm-tinymce-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
Adds links to data objects in TinyMCE editor
TinyMCE Silverstripe 4 inspired theme
Laravel Media Popup to upload/view the files
PMVC Plugin for File information
Mapper for accessing resources in KWCMS
统计信息
- 总下载量: 1.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 7
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-23