codeq / htmlcontent
HTML content nodes for the Neos CMS
Installs: 380
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:neos-plugin
Requires
- ext-dom: *
- ext-libxml: *
- neos/neos: ~5.0 || ~7.0 || ~8.0 || dev-master
This package is not auto-updated.
Last update: 2024-04-17 11:45:39 UTC
README
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 CodeQ.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.
The development and the public-releases of this package are generously sponsored by Code Q Web Factory.
Installation
CodeQ.HtmlContent is available via packagist. "codeq/htmlcontent" : "~1.0"
to the require section of the composer.json or run:
composer require codeq/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:
'CodeQ.HtmlContent:Content.Html': abstract: true
'YOUR.PACKAGE:Content.Html': superTypes: 'CodeQ.HtmlContent:Content.Html': true
prototype(YOUR.PACKAGE:Content.Html) < prototype(Neos.Neos:ContentComponent) {
renderer = afx`
<div class="container">
<CodeQ.HtmlContent:Content.Html isEditable={false}/>
</div>
`
}
License
Licensed under MIT, see LICENSE
Contribution
We will gladly accept contributions. Please send us pull requests.