Skip to content

Instantly share code, notes, and snippets.

ezrichtext_extension:
custom_classes:
p: [p-class-1, p-class-2, p-class-3]
table: [table-class-1, table-class-2]
custom_attributes:
tr:
hide:
type: checkbox
p:
max-length:
php bin/console bazinga:js-translation:dump web/assets --merge-domains
yarn encore dev
$bundles = [
...
new ContextualCode\EzPlatformCustomAttributesBundle\EzPlatformCustomAttributesBundle(),
];
composer require contextualcode/ezplatform-custom-attributes
cd /var/www/ezplatform
composer require your-namespace/my-bundle
"repositories": [
{
"type": "path",
"url": "/var/www/my-bundle"
}
],
{
"name": "your-namespace/my-bundle",
"license": "GPL-2.0-only",
"version": "0.0.1",
"type": "symfony-bundle",
"description": "Cool and reusable bundle",
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"your-namespace\\MyBundle\\": "src/bundle/"
mkdir -p /var/www/my-bundle
const ezParagraphConfig = new window.eZ.ezAlloyEditor.ezParagraphConfig({ customStyles: this.customStylesConfigurations });
const ezCustomStyleConfig = new window.eZ.ezAlloyEditor.ezCustomStyleConfig({ customStyles: this.customStylesConfigurations });
const pluginButtons = ['Smiley', 'random'];
ezCustomStyleConfig.buttons = ezCustomStyleConfig.buttons.concat(pluginButtons);
ezParagraphConfig.buttons = ezParagraphConfig.buttons.concat(pluginButtons);
CKEDITOR.plugins.addExternal( 'smiley', '/bundles/extendedadminui/js/alloyeditor/plugins/smiley/' );