⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Using setTexteditor in a Multiple Grid returns TypeError



prbdcw
  • profile picture
  • Member

Posted 04 May 2018 - 06:05 AM

Hi,
 
I'm trying to use $crud->setTexteditor(['message']) as part of a Multiple Grid and receiving the following error when selecting the Add or Edit button for that table: 
 
 
Uncaught TypeError: 
$selector.ckeditor is not a function
    at Object.texteditor (jquery-plugins.js:32)
    at RichTexteditorWithPlugin.componentDidMount (rich-texteditor-with-plugin.js:28)
    at commitLifeCycles (react.v16.2.0.js:10997)
    at commitAllLifeCycles (react.v16.2.0.js:12173)
    at HTMLUnknownElement.callCallback (react.v16.2.0.js:2265)
    at Object.invokeGuardedCallbackDev (react.v16.2.0.js:2304)
    at invokeGuardedCallback (react.v16.2.0.js:2161)
    at commitRoot (react.v16.2.0.js:12277)
    at performWorkOnRoot (react.v16.2.0.js:13244)
    at performWork (react.v16.2.0.js:13194)




texteditor: function texteditor($selector) {
$selector.ckeditor();
}
It's worth noting, that I'm able to successfully render setTexteditor() if its not within a multiple grid.
 
 
Can someone please advise how to use setTexteditor() as part of Multiple Grid.
 
Thanks,
Brendan

flowerbed333
  • profile picture
  • Member

Posted 13 May 2018 - 09:17 AM

I have the same issue. Probably a side effect of multigrid use

drinkingwine
  • profile picture
  • Member

Posted 06 January 2020 - 19:07 PM

Has this ever been resolved? I have the same issue.


larasmith
  • profile picture
  • Member

Posted 08 January 2020 - 00:50 AM

Hi everyone!

 

I haven't tried using a multiple grid in my projects.

What projects are you working on that requires such?

 

Cheers!

Lara


drinkingwine
  • profile picture
  • Member

Posted 08 January 2020 - 21:47 PM

My project has a client list. I added, to "more" a selection called "charts." In charts I display 3 grids. "Notes", "Clinical", and "Process." 

These three grids work fine. The problem is with settexteditor function. 

 

Uncaught TypeError: 
$selector
.ckeditor is not a function