codeq/htmlcontent 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codeq/htmlcontent

最新稳定版本:v2.0.3

Composer 安装命令:

composer require codeq/htmlcontent

包简介

HTML content nodes for the Neos CMS

README 文档

README

Latest Stable Version License

HTML Content nodes for Neos CMS

The successor of CodeQ.HtmlWidget

Create content nodes with HTML code, e.g. external players or iframe embeds. Manage who can create and editor those nodes with the role NEOSidekick.HtmlContent:HtmlWidgetDefinitionEditor.

Features

  • Validates HTML and prevents the backend from breaking by not rendering broken HTML
  • Automatically removes JavaScript code in the backend, to not break the Neos Administration
  • Used media assets can be set on the node, so these assets can not be deleted.

HTML Content Demo

The development and the public-releases of this package are generously sponsored by Code Q Web Factory.

Installation

NEOSidekick.HtmlContent is available via packagist. "neosidekick/htmlcontent" : "~2.0" to the require section of the composer.json or run:

composer require neosidekick/htmlcontent

We use semantic-versioning so every breaking change will increase the major-version number.

You want to define your own NodeType or different Fusion?

Just set the NodeType to abstract and do your own thing:

'NEOSidekick.HtmlContent:Content.Html':
  abstract: true
'YOUR.PACKAGE:Content.Html':
  superTypes:
    'NEOSidekick.HtmlContent:Content.Html': true
prototype(YOUR.PACKAGE:Content.Html) < prototype(Neos.Neos:ContentComponent) {
  renderer = afx`
    <div class="container">
      <NEOSidekick.HtmlContent:Content.Html isEditable={false}/>
    </div>
  `
}

License

Licensed under MIT, see LICENSE

Contribution

We will gladly accept contributions. Please send us pull requests.

Testing

The package contains unit tests to verify the HTML parsing and validation logic. You can run the tests using PHPUnit.

If you are using ddev (recommended):

ddev exec bin/phpunit -c UnitTests.xml DistributionPackages/NEOSidekick.HtmlContent/Tests/Unit

If you are running it directly:

bin/phpunit -c UnitTests.xml DistributionPackages/NEOSidekick.HtmlContent/Tests/Unit

统计信息

  • 总下载量: 984
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-05-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固