Page 1 of 1

CGContentUtil wysiwyg not working

Posted: Tue Feb 09, 2021 9:05 am
by musicscore
I created a block definition in CGContentUtil for inserting extra text on a page. (see attachment cgcontentutil-001.jpg)
I want this text-area to use wysiwyg so I select "Use wysiwyg" to 'Yes'.
After saving and opening it again it is automaticly switch back to 'No'.

So I tried to code it in the template

Code: Select all

{content_module module=CGContentUtils block="wysiwyg" wysiwyg=1}
But this also did not work.
I can see the field when editing the page but wysiwyg is not enabled.

Please help.

How can I create a text-area with cgcontentutil and have wysiwyg enabled.

Creating other fields with cgcontentutil works great

TIA. Musicscore

Re: CGContentUtil wysiwyg not working

Posted: Tue Feb 09, 2021 3:38 pm
by DIGI3
It looks like a bug in the module, the setting for wysiwyg isn't stored in the database. I've created a BR with a workaround at http://dev.cmsmadesimple.org/bug/list/697 but I don't think the developer is supporting it anymore so I wouldn't expect a proper fix.

I would suggest one of two alternates if you don't want to make database changes:
-just use a regular content block, textareas don't really need a module. {content block='foo' wysiwyg=1} for example.
-use ECB2 (http://dev.cmsmadesimple.org/projects/ecb2) which is under active development.

Re: CGContentUtil wysiwyg not working

Posted: Tue Feb 09, 2021 4:24 pm
by musicscore
Thank you again DIGI3.

Thursday I have to give a demo to my customer and show him the beta relase of the website.
After that, I will swith to ECB2 on the site as that is doing a perfect job.
Because of the demo I'm afraid to change it before.

(OMG CMSMS is perfect. I love it)
After the customer has payed (in a couple of weeks because it will take some time to come to the finale/production state version), I will donate to CMSMS.