samuell/contenteditor-plugin
Composer 安装命令:
composer require samuell/contenteditor-plugin
包简介
Allows you to edit content files on the front-end pages.
关键字:
README 文档
README
Edit content from front-end.
http://octobercms.com/plugin/samuell-contenteditor
How to use it? It`s simple.
- Drop the Content Editor component to a CMS page.
- Check if you have
{% framework %}and{% scripts %}inside layout for working ajax requests and{% styles %}for additional css - Use this code in your page code and link the editor to a content file or set name to autocreate new file
Simple example:
{% component 'contenteditor' file="filename_in_content.htm" %}
Properties
- file - Content block filename to edit, optional. If doesnt exists it will autocreate
- fixture - Fixed name for content block, useful for inline texts (headers, spans...)
- tools - List of enabled tools, comma separated (for all default tools use
*or leave empty to get all tools defined in settings of Content Editor) - class - Class for element, mostly useful for fixtures
Example:
{% component 'contenteditor' file="filename_in_content.htm" fixture="h3" tools="bold,italic" class="my-class" %}
Tools list
bold=> Bold (b)italic=> Italic (i)link=> Link (a)small=> Small (small)align-left=> Align leftalign-center=> Align centeralign-right=> Align rightheading=> Heading (h1)subheading=> Subheading (h2)subheading3=> Subheading3 (h3)subheading4=> Subheading4 (h4)subheading5=> Subheading5 (h5)paragraph=> Paragraph (p)unordered-list=> Unordered list (ul)ordered-list=> Ordered list (ol)table=> Tableindent=> Indentunindent=> Unindentline-break=> Line-break (br)image=> Image uploadvideo=> Videopreformatted=> Preformatted (pre)
Inspired by Editable plugin and using Content tools editor http://getcontenttools.com.
samuell/contenteditor-plugin 适用场景与选型建议
samuell/contenteditor-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.29k 次下载、GitHub Stars 达 40, 最近一次更新时间为 2019 年 03 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「editor」 「content」 「octobercms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 samuell/contenteditor-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 samuell/contenteditor-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 samuell/contenteditor-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
User plugin for October CMS
Laravel Horizon integration for October CMS
Maintenance page plugin
A block that displays featured content - large image, title, description and link.
Location plugin for October CMS
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
统计信息
- 总下载量: 3.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 40
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-23