CMS (Grapes JS) plugins
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!
CMS (Grapes JS) plugins
2022.10 branch.
Hello!
How can I add or enable image-editor plugin to GrapesJS?
Hello!
How can I add or enable image-editor plugin to GrapesJS?
Re: CMS (Grapes JS) plugins
Check the GrapesJS documentation. The custom GrapesJS setup is located here and you can add custom code in the themes/admin/jqadm/custom.js of your own project-specific Aimeos extension:
https://github.com/aimeos/ai-cms-grapes ... /custom.js
https://github.com/aimeos/ai-cms-grapes ... /custom.js
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: CMS (Grapes JS) plugins
Yes I did it in custom.js:aimeos wrote: ↑07 Jul 2023, 07:12 Check the GrapesJS documentation. The custom GrapesJS setup is located here and you can add custom code in the themes/admin/jqadm/custom.js of your own project-specific Aimeos extension:
https://github.com/aimeos/ai-cms-grapes ... /custom.js
Code: Select all
...
GrapesJS: {
config: {
container: null,
components: '',
fromElement: false,
showDevices: false,
noticeOnUnload: false,
height: 'calc(100vh - 10rem)',
width: '100%',
plugins: ['grapesjs-plugin-header', 'grapesjs-tui-image-editor'],
pluginsOpts: {
'grapesjs-table': {
classTable: 'table',
style: `
.table .row {
display: table-row;
}
.table .cell {
width: auto; height: auto;
}
`,
tableProps: {
footer: false
}
},
'grapesjs-tui-image-editor': {
config: {
includeUI: {
initMenu: 'filter',
},
},
}
},
...
grapesjs.plugins.add('grapesjs-tui-image-editor', window['grapesjs-tui-image-editor'].default(editor, opts['grapesjs-tui-image-editor']));
...
Should I add "grapesjs-tui-image-editor.min.js" code to grapes-ext.js?
Re: CMS (Grapes JS) plugins
Sure, you need to add all necessary JS code.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star