Multiple ckeditors on a modal form.in 5.8.0.2

Permalink
I am trying to find a way to put multiple ckeditors, up to 4, with different but related content all from the same data record. In doing so I also want to drive the save from the common/shared save button on the form and not separate save buttons on the editors. The questions I have are:
1. is it possible to have multiple editors on a single modal form?
2. Can I commit the entire form contents from the form save button?

Any help or guidance on this would be much appreciated.

Thanks
Martyn

FaganSystems
 
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi FaganSystems,

I recommend reviewing the rich text editor documentation.
http://documentation.concrete5.org/developers/interface-customizati...

The outputBlockEditModeEditor() and outputStandardEditor() methods create rich text editors without a save button. In a block form, multiple editors created this way would be saved at the same time when the form is saved (using the default block save() method). In a single page, they would also be saved at the same time, but you would be responsible for using your own method for saving.

Here is an example use in the Feature block's form:
https://github.com/concrete5/concrete5/blob/develop/concrete/blocks/...
FaganSystems replied on at Permalink Reply
FaganSystems
HI MrKDilkington,
Thanks for the pointer that was 100% on target and saved me a sleepless night. THis has brought up a related question.
I now have a Modal popup with 4 ckeditors all working as predicted. Because this is for writing a potentially long blog post into a specialist website, I have increased the modal size to
protected $btInterfaceWidth = "1024";
protected $btInterfaceHeight = "700";
Again this is working correctly, but while the ckeditors are loading full width, they are only occupying 75% of the vertical window, I have looked at the manual and the code and I can't see how to set the correct height for this use. I have selected the autogrow option which suggests it will grow to the full window height.

Any ideas on how this can be done?

Thanks
FaganSystems replied on at Permalink Reply
FaganSystems
Why is it that I have been coming back to this problem on and off all morning and its not until I decide to move on with the build that I realise that I can change the height with css.

So all sorted on that front now.
Thanks again for the expert and on target help