Catalog>Product>text description with color
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Catalog>Product>text description with color
Laravel 10, Aimeos 2022, php 8.1
Hello,
Is there a way to set colored text (or use html tag) in long or short description of a product ?
Hello,
Is there a way to set colored text (or use html tag) in long or short description of a product ?
Re: Catalog>Product>text description with color
Hello,
You can read about the ckeditor configuration here:
https://aimeos.org/docs/2022.x/admin/jq ... #customize
By default only the tags div, p, span are allowed.
You can edit the HTML by clicking the three dots on the top right of the editor window and clicking "Source".
By default you can only add classes, no styles, no attributes, but you can override the config in your extension:
/packages/your-extension/themes/admin/jqadm/custom.js
You put this code in your custom.js and change what you want:
You can read about the ckeditor configuration here:
https://aimeos.org/docs/2022.x/admin/jq ... #customize
By default only the tags div, p, span are allowed.
You can edit the HTML by clicking the three dots on the top right of the editor window and clicking "Source".
By default you can only add classes, no styles, no attributes, but you can override the config in your extension:
/packages/your-extension/themes/admin/jqadm/custom.js
You put this code in your custom.js and change what you want:
Code: Select all
Aimeos.ckeditor.htmlSupport = {
allow: [{
name: /div|p|span/,
attributes: false,
classes: true,
styles: false,
}],
disallow: []
};
Re: Catalog>Product>text description with color
Thanks a lot for that complete answer