KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Wyswyg on textarea #2927

Open cyberweb opened this topic on on Jan 4, 2023 - 1 comments

cyberweb commented on Jan 4, 2023

is it possible to have a input wyswyg on a textarea as summernote ? Because whan we use summernote in ressource in dashboard, the input is not transmit for update or insert because i think that the js don't know that the input change.

We try

 Text::create("description")->label($this->tr->trad('description'))
             ->showOnIndex(true)
             ->inputWidget(
                    TextArea::create()->onClientLoading(function(){
                            return "
                               $(document).ready(function() { $('.summernote').summernote();
                        })->cssClass("summernote")
                    ),     

Summer note appear and work, but the data are not update because not display with print_r

Have you got a solution ? Thanks !

Sebastian Morales commented on Jan 9, 2023

Hi, we are looking into this situation. Normally for Dashboard's inputs to update correctly their names must be in Dashboard's format. We are not sure yet whether SummerNote keeps the textarea's name formatting. We will let you know the result. Tks,

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Dashboard