almaviacx/ibexarichtextextrabundle

扩展 Ibexa Richtext 编辑器的功能包

安装次数: 1,174

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 1

开放问题: 0

语言:JavaScript

类型:ibexa-bundle

1.0.0 2024-05-29 12:52 UTC

This package is auto-updated.

Last update: 2024-08-29 13:35:39 UTC


README

这个仓库是我们所说的“子树分割”:主仓库中一个目录的只读副本。Composer 使用它来允许开发者依赖特定的包。

如果您想报告问题或做出贡献,请打开主仓库中的问题:https://github.com/Novactive/Nova-eZPlatform-Bundles

文档可以通过此仓库中的 .md 文件获取,也可以在此处打包:https://novactive.github.io/Nova-eZPlatform-Bundles/master/2FABundle/README.md.html

此包扩展 Ibexa Richtext 编辑器以下功能

  • 添加编辑按钮到编辑器中以嵌入和编辑图像
  • 添加按钮以将文件作为嵌入上传到编辑器

安装

要求

  • Ibexa 4.5
  • PHP 7.3 或 8.0

使用 Composer

将库添加到您的 composer.json 中,运行 composer require almaviacx/ibexarichtextextrabundle 以更新依赖关系。

注册包

然后,在您的应用程序的 config\bundles.php 中注入包。

    return [
        // ...
        AlmaviaCX\Bundle\IbexaRichTextExtraBundle\AlmaviaCXIbexaRichTextExtraBundle::class => [ 'all'=> true ],
    ];

添加路由

确保您已将此路由添加到您的路由中

# config/routes.yaml

_almaviacx_ibexa_rich_text_extra_bundle_routes:
    resource: '@AlmaviaCXIbexaRichTextExtraBundle/Resources/config/routing.yaml'

配置

此包定义以下设置,允许您自定义文件上传行为

# Binary files mappings
ibexa.site_access.config.default.fieldtypes.binaryfile.mappings:
    content_type_identifier: file
    content_field_identifier: file
    name_field_identifier: name
    parent_location_id: 52
    mime_types:
        - image/svg+xml
        - application/msword
        - application/vnd.openxmlformats-officedocument.wordprocessingml.document
        - application/vnd.ms-excel
        - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
        - application/vnd.ms-powerpoint
        - application/vnd.openxmlformats-officedocument.presentationml.presentation
        - application/pdf