ddoe/wysiwyg-editor-module
Composer 安装命令:
composer require ddoe/wysiwyg-editor-module
包简介
Summernote WYSIWYG Editor for OXID eShop.
README 文档
README
Compatibility
Versions
- versions
7.0.x- compatible with OXID eShop compilation 7.5.x and higher - versions
6.0.x- compatible with OXID eShop compilation 7.4.x and higher - versions
5.0.x- compatible with OXID eShop compilation 7.3.x and higher - versions
4.2.x- compatible with OXID eShop compilation 7.2.x and higher - versions
4.0.x - 4.1.x- compatible with OXID eShop compilation 7.1.x - versions
3.x- compatible with OXID eShop compilation 7.0.x - versions
2.x- compatible with OXID eShop compilation 6.0.x - 6.5.x
Branches
b-7.6.xis compatible with OXID eShop b-7.6.x branchb-7.5.xis compatible with OXID eShop b-7.5.x branchb-7.4.xis compatible with OXID eShop b-7.4.x branchb-7.3.xis compatible with OXID eShop b-7.3.x branchb-7.2.xis compatible with OXID eShop b-7.2.x branchb-7.1.xis compatible with OXID eShop b-7.1.x branch, works with Twig engine only from here onb-7.0.xis compatible with OXID eShop b-7.0.x branch and supports Legacy Smarty engineb-2.xis compatible with OXID eShop compilations: 6.2.x - 6.5.x
Module installation via composer
In order to install the module via composer run one of the following commands in commandline in your shop base directory (where the shop's composer.json file resides).
composer require ddoe/wysiwyg-editor-module:^7.0.0to install the released version compatible with OXID eShop v7.6.xcomposer require ddoe/wysiwyg-editor-module:dev-b-7.6.xto install the specific unreleased branch
Module activation in OXID eShop Admin
After installation, please, activate the module in OXID eShop Admin
EXTENSIONS -> Modules -> "Summernote WYSIWYG Editor for OXID eShop" -> Activate
Development installation
The installation instructions below are shown for the current SDK for shop 7.6. Make sure your system meets the requirements of the SDK.
-
Ensure all docker containers are down to avoid port conflicts
-
Clone the SDK for the new project
echo MyProject && git clone https://github.com/OXID-eSales/docker-eshop-sdk.git $_ && cd $_
- Clone the repository to the source directory
git clone --recurse-submodules https://github.com/OXID-eSales/ddoe-wysiwyg-editor-module.git --branch=b-7.6.x ./source
- Run the recipe to setup the development environment
./source/recipes/setup-development.sh
You should be able to access the shop via
- Frontend http://localhost.local
- Admin Panel: http://localhost.local/admin
- (credentials: noreply@oxid-esales.com / admin)
Running the tests and quality tools
Check the "scripts" section in the composer.json file for the available commands. Those commands can be executed
by connecting to the php container and running the command from there, example:
make php composer tests-coverage
Commands can be also triggered directly on the container with docker compose, example:
docker compose exec -T php composer tests-coverage
Rebuilding the assets
To rebuild the assets, latest node docker container can be used. The one is pulled automatically if you are using the installation method from the previous section. What is left - connect to the container, install the npm dependencies and run the assets building process
make node
Navigate to the module directory and run:
npm install npm run build
Alternatively, if you're actively developing and want changes to be applied automatically, you can enable watch mode:
npm run watch
Migration
Besides running the usual migrations process, there are some addition actions that may differ by project.
Media paths to IDs
The command ddoewysiwyg:migrate:urls-to-ids tableName fieldName tableIdKey migrates hardcoded media
paths inserted by earlier version of MediaLibrary to Media object ID's. It takes the tableName, fieldName,
and the tableIdKey field as params.
Example use:
vendor/bin/oe-console ddoewysiwyg:migrate:urls-to-ids oxartextends OXLONGDESC
vendor/bin/oe-console ddoewysiwyg:migrate:urls-to-ids oxartextends OXLONGDESC_1
vendor/bin/oe-console ddoewysiwyg:migrate:urls-to-ids oxcategories OXDESC
vendor/bin/oe-console ddoewysiwyg:migrate:urls-to-ids oxcategories OXDESC_1
vendor/bin/oe-console ddoewysiwyg:migrate:urls-to-ids oxcontents OXCONTENT
vendor/bin/oe-console ddoewysiwyg:migrate:urls-to-ids oxcontents OXCONTENT_1
Ensure all fields for which the WYSIWYG editor is used are migrated.
Media alt texts
The command ddoewysiwyg:migrate:alt-texts tableName fieldName tableIdKey adds oeMediaAlt placeholders to
media image alt attributes. This enables media alt texts managed in the Media Library to be rendered automatically
in the frontend. It should be run after the ddoewysiwyg:migrate:urls-to-ids migration, as it relies on the
data-id attribute being present on media image tags.
The command handles the following cases:
- Empty or missing
altattribute: replaced with theoeMediaAltplaceholder - Already migrated (
oeMediaAltplaceholder present): skipped - Custom alt text written manually: not modified, but listed in the command output for manual review
Example use:
vendor/bin/oe-console ddoewysiwyg:migrate:alt-texts oxartextends OXLONGDESC
vendor/bin/oe-console ddoewysiwyg:migrate:alt-texts oxartextends OXLONGDESC_1
vendor/bin/oe-console ddoewysiwyg:migrate:alt-texts oxcontents OXCONTENT
vendor/bin/oe-console ddoewysiwyg:migrate:alt-texts oxcontents OXCONTENT_1
If any media images have custom alt text, the command will output them:
Warning: The following media images have custom alt text that was NOT modified:
[OXID=abc123] media-id="68cab835a253c" alt="My product photo"
Please review these entries and update alt texts manually if needed.
Bugs and Issues
If you experience any bugs or issues, please report them in the section WYSIWYG Editor + Media Gallery of https://bugs.oxid-esales.com.
ddoe/wysiwyg-editor-module 适用场景与选型建议
ddoe/wysiwyg-editor-module 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.04M 次下载、GitHub Stars 达 19, 最近一次更新时间为 2017 年 07 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wysiwyg」 「editor」 「modules」 「eshop」 「OXID」 「summernote」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ddoe/wysiwyg-editor-module 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ddoe/wysiwyg-editor-module 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ddoe/wysiwyg-editor-module 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This is Paymorrow module for OXID eShop.
Adds more BBCode
Analysis module for finding problematical shop data.
yii2 swiper slider
An interactive tour through the TYPO3 backend.
WYSIWYG editor for Yii2 based on Bootstrap 3
统计信息
- 总下载量: 1.04M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 25
- 依赖项目数: 2
- 推荐数: 2
其他信息
- 授权协议: proprietary
- 更新时间: 2017-07-10