wdmg/bootstrap-wysiwyg-editor
Composer 安装命令:
composer require wdmg/bootstrap-wysiwyg-editor
包简介
Simple WYSIWYG editor plugin for Bootstrap 3
README 文档
README
Simple editor plugin for Bootstrap
Installation
$ npm install bootstrap-wysiwyg-editor
$ bower install bootstrap-wysiwyg-editor
$ yarn add bootstrap-wysiwyg-editor
$ composer require bootstrap-wysiwyg-editor
Usage example
For example use the input-group:
<div class="form-group">
<label class="control-label" for="editor">Message:</label>
<textarea id="editor" class="form-control" rows="3"></textarea>
</div>
... and init from script:
<script type="text/javascript">
$(document).ready(function () {
// For init plugin use:
$('#editor').wysiwyg({
toolbar: [
['mode'],
['operations', ['undo', 'rendo', 'cut', 'copy', 'paste']],
['styles'],
['fonts', ['select', 'size']],
['text', ['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', 'font-color', 'bg-color']],
['align', ['left', 'center', 'right', 'justify']],
['lists', ['unordered', 'ordered', 'indent', 'outdent']],
['components', ['table']],
['intervals', ['line-height', 'letter-spacing']],
['insert', ['emoji', 'link', 'image', 'video', 'symbol']],
['special', ['print', 'unformat', 'visual', 'clean']],
],
fontSizes: ['8px', ... '48px'],
fontSizeDefault: '12px',
fontFamilies: ['Open Sans', 'Arial', ... 'Times New Roman', 'Verdana'],
fontFamilyDefault: 'Open Sans',
emojiDefault: [...],
symbolsDefault: [...],
colorPalette: [...],
mode: 'editor',
highlight: true,
debug: false
});
// To destroy plugin use:
$('#editor').wysiwyg('destroy');
});
</script>
Options
| Name | Type | Description |
|---|---|---|
| toolbar | array | List of available editor features. |
| fontSizes | array | List of available font sizes. |
| fontSizeDefault | string | The default font size. |
| fontFamilies | array | List of font families. |
| fontFamilyDefault | string | Default font. |
| emojiDefault | array | List of emojis. |
| symbolsDefault | array | List of characters (spec. symbols). |
| colorPalette | array | Color picker. |
| mode | string | The default editor mode. |
| debug | boolean | Flag if debugging is required. |
Status and version
- v.1.1.4 - Gulp, added destroy method
- v.1.1.3 - Fixed path info in footer
- v.1.1.2 - Added visual blocks view mode, fixed some bugs
- v.1.1.1 - Bugfix
- v.1.1.0 - Plugin in progress development
wdmg/bootstrap-wysiwyg-editor 适用场景与选型建议
wdmg/bootstrap-wysiwyg-editor 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 411 次下载、GitHub Stars 达 16, 最近一次更新时间为 2019 年 01 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「bootstrap」 「wysiwyg」 「editor」 「twitter-bootstrap」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 wdmg/bootstrap-wysiwyg-editor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wdmg/bootstrap-wysiwyg-editor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 wdmg/bootstrap-wysiwyg-editor 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Adds more BBCode
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
WYSIWYG editor for Yii2 based on Bootstrap 3
UEditor 是一套开源的在线HTML编辑器,主要用于让用户在网站上获得所见即所得编辑效果,开发人员可以用 UEditor 把传统的多行文本输入框(textarea)替换为可视化的富文本输入框。
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
Summernote extension for laravel-admin
统计信息
- 总下载量: 411
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-30