2021-12-16, 02:44:25
(2021-12-15, 22:47:43)zekoolweb Wrote: Thanks Oleg6, me too, but my question is more about component.
I know how to setup this gsconfig.php file, but what is unknown is :
"how to apply this Ckeditor configuration to Components" ?
Here is what i added into Ckeditor "config.js" (\admin\template\js\ckeditor\config.js)
config.toolbar_custom = [
[
"Uploadcare",
"Source",
],
];
this is for defining my custom toolbar for using Uploadcare (http://get-simple.info/extend/plugin/upl...-fly/1280/).
But then what would it take to have a parameter which allow to set :
1/ enable ckeditor onto components ?
2/ set a custom toolbar ?
hi
you tried my plugin? http://get-simple.info/extend/plugin/com...ywig/1269/ @zekoolweb this add ckeditor with all extra plugins on components maybe this can help you
if you want create custom toolbar you must edit component-wysywig.js
on toolbar section
and edit toolbar section
Code:
,toolbar: [["Cut","Copy","Paste","PasteFromWord","-","Undo","Redo","Find","Replace","-","SelectAll"],["Bold","Italic","Underline","NumberedList","BulletedList","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","Table","TextColor","BGColor","Link","Unlink","Image","RemoveFormat","Source"],"\/",["Styles","Format","Font","FontSize","Undo","Redo","Maximize"],["Templates","AddCMSGrid","AddCMSGridRow","DeleteCMSGridRow","ExpandCMSColLeft","ExpandCMSColRight","SwapCMSCols"],["Iframe","ckawesome","oembed","simplebutton","ckeditor-gwf-plugin","spacingsliders","easycontact"]] ,extraPlugins:'cmsgrid,ckawesome,colorbutton,oembed,simplebutton,spacingsliders,easycontact'
like example, off course you use own plugins and what do you want add.
question? go to my discord about my plugins
https://discord.gg/9Sb8fUeyVc