Jump to content


Using setTexteditor in a Multiple Grid returns TypeError

setTexteditor

  • Please log in to reply
4 replies to this topic

#1 prbdcw

prbdcw

    Newbie

  • Members
  • Pip
  • 2 posts

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


#2 flowerbed333

flowerbed333

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 13 May 2018 - 09:17 AM

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

#3 drinkingwine

drinkingwine

    Member

  • Members
  • PipPip
  • 18 posts

Posted 06 January 2020 - 07:07 PM

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



#4 larasmith

larasmith

    Advanced Member

  • Members
  • PipPipPip
  • 199 posts
  • LocationPhilippines

Posted 08 January 2020 - 12: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



#5 drinkingwine

drinkingwine

    Member

  • Members
  • PipPip
  • 18 posts

Posted 08 January 2020 - 09: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







Also tagged with one or more of these keywords: setTexteditor

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users